Skip to content

Commit

Permalink
Renamed 'quick chat' to 'quick ask' and switch description and name o…
Browse files Browse the repository at this point in the history
…n search provider
  • Loading branch information
Jeffser committed Nov 27, 2024
1 parent 5600d58 commit 757ebff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/alpaca_search_provider.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class AlpacaSearchProvider:
"""

opts = {
"open": {'description': _('Open chat'), 'option': '--select-chat'},
"ask": {'description': _('Quick chat'), 'option': '--ask'}
"open": {'name': _('Open chat'), 'option': '--select-chat'},
"ask": {'name': _('Quick ask'), 'option': '--ask'}
}

def GetInitialResultSet(self, terms):
Expand Down Expand Up @@ -100,8 +100,8 @@ class AlpacaSearchProvider:
for identifier in identifiers:
metas = {
"id": GLib.Variant("s", identifier),
"name": GLib.Variant("s", ':'.join(identifier.split(':')[1:])),
"description": GLib.Variant("s", self.opts[identifier.split(':')[0]]['description']),
"name": GLib.Variant("s", self.opts[identifier.split(':')[0]]['name']),
"description": GLib.Variant("s", ':'.join(identifier.split(':')[1:])),
"gicon": GLib.Variant("s", "com.jeffser.Alpaca")
}
results.append(metas)
Expand Down

0 comments on commit 757ebff

Please sign in to comment.