File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ Put `set -g @open-editor-command 'my-editor'` in `tmux.conf`.
74
74
75
75
Put ` set -g @open-opener-command 'my-opener' ` in ` tmux.conf ` .
76
76
77
+ > How can I change the default command for opening the web search?
78
+
79
+ Put ` set -g @open-searcher-command 'my-searcher' ` in ` tmux.conf ` .
80
+
77
81
> How can I change the default search engine to "duckduckgo" or any other one?
78
82
79
83
Put ` set -g @open-S 'https://www.duckduckgo.com/' ` in ` tmux.conf `
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ open_editor_option="@open-editor"
13
13
open_editor_override=" @open-editor-command"
14
14
15
15
open_opener_override=" @open-opener-command"
16
+ open_searcher_override=" @open-searcher-command"
16
17
17
18
command_exists () {
18
19
local command=" $1 "
@@ -58,7 +59,7 @@ generate_open_command() {
58
59
generate_open_search_command () {
59
60
local engine=" $1 "
60
61
local opener
61
- if opener=" $( get_tmux_option " $open_opener_override " ' ' ) " && [ -n " ${opener-} " ]; then
62
+ if opener=" $( get_tmux_option " $open_searcher_override " ' ' ) " && [ -n " ${opener-} " ]; then
62
63
search_command_generator " $opener " " $engine "
63
64
elif is_osx; then
64
65
search_command_generator " open" " $engine "
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ display_message() {
35
35
stored_engine_vars () {
36
36
tmux show-options -g |
37
37
grep -i " ^@open-" |
38
- grep -Evi " ^@open-(editor|opener)" |
38
+ grep -Evi " ^@open-(editor|opener|searcher )" |
39
39
cut -d ' -' -f2 |
40
40
cut -d ' ' -f1 |
41
41
xargs
You can’t perform that action at this time.
0 commit comments