mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
Merge pull request #1350 from glacambre/reverse_img_search_hint
config.ts: Add reverse-search bindings
This commit is contained in:
commit
ec43f7bb1c
2 changed files with 5 additions and 1 deletions
|
@ -58,7 +58,7 @@ async function addSetting(settingName: string) {
|
|||
for (let setting in settings) {
|
||||
let excmd = settings[setting].split(" ")
|
||||
// How can we automatically detect what commands can be skipped?
|
||||
excmd = ["fillcmdline", "current_url"].includes(excmd[0])
|
||||
excmd = ["composite", "fillcmdline", "current_url"].includes(excmd[0])
|
||||
? excmd[1]
|
||||
: excmd[0]
|
||||
// Find the corresponding setting
|
||||
|
|
|
@ -252,6 +252,10 @@ class default_config {
|
|||
";O": "hint -W fillcmdline_notrail open ",
|
||||
";W": "hint -W fillcmdline_notrail winopen ",
|
||||
";T": "hint -W fillcmdline_notrail tabopen ",
|
||||
";m":
|
||||
"composite hint -pipe img src | js -p tri.excmds.open('images.google.com/searchbyimage?image_url=' + JS_ARG)",
|
||||
";M":
|
||||
"composite hint -pipe img src | jsb -p tri.excmds.tabopen('images.google.com/searchbyimage?image_url=' + JS_ARG)",
|
||||
";gi": "hint -qi",
|
||||
";gI": "hint -qI",
|
||||
";gk": "hint -qk",
|
||||
|
|
Loading…
Add table
Reference in a new issue