Search changes, plugin changes

This commit is contained in:
2022-10-27 17:23:27 -05:00
parent d0612a2b37
commit eeef0a4330
10 changed files with 87 additions and 128 deletions

View File

@@ -8,7 +8,7 @@
"ui_target": "main_menu_bttn_box_bar",
"pass_fm_events": "true",
"pass_ui_objects": ["path_entry"],
"bind_keys": []
"bind_keys": ["Favorites||show_favorites_menu:<Control>f"]
}
}
}

View File

@@ -30,7 +30,7 @@ class Plugin(PluginBase):
super().__init__()
self.name = "Favorites" # NOTE: Need to remove after establishing private bidirectional 1-1 message bus
# where self.name should not be needed for message comms
# where self.name should not be needed for message comms
self.path = os.path.dirname(os.path.realpath(__file__))
self._GLADE_FILE = f"{self.path}/favorites.glade"
self._FAVORITES_FILE = f"{self.path}/favorites.json"
@@ -70,6 +70,8 @@ class Plugin(PluginBase):
with open(self._FAVORITES_FILE, 'a') as f:
f.write('[]')
self._event_system.subscribe("show_favorites_menu", self._show_favorites_menu)
def generate_reference_ui_element(self):
button = Gtk.Button(label=self.name)