Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add command palette button to menubar #303

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: pyinstaller scripts/linux.spec

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "biscuit-nightly-anylinux"
path: "dist/"
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: pyinstaller scripts/windows.spec

- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "biscuit-nightly-windows"
path: "dist/"
2 changes: 1 addition & 1 deletion biscuit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.75.0"
__version__ = "2.75.2"
__version_info__ = tuple([int(num) for num in __version__.split(".")])

# For tests to run successfully
Expand Down
5 changes: 5 additions & 0 deletions biscuit/core/layout/menubar/searchbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from biscuit import __version__
from biscuit.core.utils import Frame, IconLabelButton
from biscuit.core.utils.iconbutton import IconButton


class Searchbar(Frame):
Expand All @@ -12,6 +13,10 @@ def __init__(self, master, *args, **kwargs):
self.label = IconLabelButton(self, text=f'Biscuit {__version__}', icon="search", padx=150, function=self.onclick)
self.label.pack(side=tk.LEFT, fill=tk.BOTH, expand=True, pady=1, padx=1)

self.palette_button = IconButton(self, icon="terminal", event=self.base.commands.show_command_palette)
self.palette_button.config(**self.base.theme.utils.iconlabelbutton)
self.palette_button.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True, pady=1, padx=(0, 1))

def onclick(self, *_):
if self.base.active_directory:
self.base.commands.show_file_search()
Expand Down
Loading