Skip to content

Commit

Permalink
fix: File search palette cleanup, Ctrl+p keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Mar 20, 2024
1 parent 8365705 commit 3b8e77e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion biscuit/core/components/floating/palette/searchbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def focus(self) -> None:
self.search_bar.focus()

def add_prefix(self, prefix: str) -> None:
self.text_variable.set(prefix + " ")
self.text_variable.set(prefix + " " if prefix else "")
self.search_bar.icursor(tk.END)

def get_search_term(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions biscuit/core/settings/config/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(self, master: Settings) -> None:
self.close_file = "<Control-w>"
self.quit = "<Control-q>"
self.commandpalette = "<Control-P>"
self.filesearch = "<Control-p>"
self.symbolpalette = "<Control-J>"
self.panel = "<Control-grave>"
self.undo="<Control-z>"
Expand Down
1 change: 1 addition & 0 deletions biscuit/core/utils/binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def late_bind_all(self) -> None:
"""Bindings that require full initialization"""

self.bind(self.bindings.commandpalette, self.events.show_command_palette)
self.bind(self.bindings.filesearch, self.events.show_file_search_palette)
self.bind(self.bindings.symbolpalette, self.events.show_symbol_palette)
self.bind(self.bindings.panel, self.base.contentpane.toggle_panel)

Expand Down

0 comments on commit 3b8e77e

Please sign in to comment.