Skip to content

Commit

Permalink
feat: Implement explorer popup menus
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Mar 10, 2024
1 parent 413d38c commit 418f61e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
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.65.0"
__version__ = "2.65.1"
__version_info__ = tuple([int(num) for num in __version__.split(".")])

# For tests to run successfully
Expand Down
4 changes: 2 additions & 2 deletions biscuit/core/components/views/sidebar/explorer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def __init__(self, master, *args, **kwargs) -> None:
self.name = 'Explorer'

self.menu = ExplorerMenu(self, 'files')
self.menu.add_item("Open Editors")
self.menu.add_item("Open Editors", self.base.events.show_active_editors)
self.menu.add_separator(10)
self.menu.add_item("Folders")
self.menu.add_item("Search", self.base.events.show_file_search_palette)
self.add_button('ellipsis', self.menu.show)

self.directory = DirectoryTree(self, observe_changes=True)
Expand Down
6 changes: 6 additions & 0 deletions biscuit/core/utils/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ def show_command_palette(self, *_) -> None:
def show_symbol_palette(self, *_) -> None:
self.base.palette.show("@")

def show_active_editors(self, *_) -> None:
self.base.palette.show("active:")

def show_file_search_palette(self, *_) -> None:
self.base.palette.show("")

def documentation(self, *_) -> None:
web.open("https://billyeatcookies.github.io/biscuit/")

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "biscuit"
version = "2.65.0"
version = "2.65.1"
description = "The uncompromising code editor"
authors = ["Billy <billydevbusiness@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 418f61e

Please sign in to comment.