forked from Shinonome/dots-hyprland
waffles: functioning search
This commit is contained in:
@@ -198,10 +198,11 @@ Singleton {
|
||||
const appResultObjects = AppSearch.fuzzyQuery(StringUtils.cleanPrefix(root.query, Config.options.search.prefix.app)).map(entry => {
|
||||
return resultComp.createObject(null, {
|
||||
type: Translation.tr("App"),
|
||||
id: entry.id,
|
||||
name: entry.name,
|
||||
iconName: entry.icon,
|
||||
iconType: LauncherSearchResult.IconType.System,
|
||||
verb: Translation.tr("Launch"),
|
||||
verb: Translation.tr("Open"),
|
||||
execute: () => {
|
||||
if (!entry.runInTerminal)
|
||||
entry.execute();
|
||||
@@ -233,7 +234,7 @@ Singleton {
|
||||
const commandResultObject = resultComp.createObject(null, {
|
||||
name: StringUtils.cleanPrefix(root.query, Config.options.search.prefix.shellCommand).replace("file://", ""),
|
||||
verb: Translation.tr("Run"),
|
||||
type: Translation.tr("Run command"),
|
||||
type: Translation.tr("Command"),
|
||||
fontType: LauncherSearchResult.FontType.Monospace,
|
||||
iconName: 'terminal',
|
||||
iconType: LauncherSearchResult.IconType.Material,
|
||||
@@ -249,7 +250,7 @@ Singleton {
|
||||
const webSearchResultObject = resultComp.createObject(null, {
|
||||
name: StringUtils.cleanPrefix(root.query, Config.options.search.prefix.webSearch),
|
||||
verb: Translation.tr("Search"),
|
||||
type: Translation.tr("Search the web"),
|
||||
type: Translation.tr("Web search"),
|
||||
iconName: 'travel_explore',
|
||||
iconType: LauncherSearchResult.IconType.Material,
|
||||
execute: () => {
|
||||
|
||||
Reference in New Issue
Block a user