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`.
7474
7575Put ` set -g @open-opener-command 'my-opener' ` in ` tmux.conf ` .
7676
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+
7781> How can I change the default search engine to "duckduckgo" or any other one?
7882
7983Put ` 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"
1313open_editor_override=" @open-editor-command"
1414
1515open_opener_override=" @open-opener-command"
16+ open_searcher_override=" @open-searcher-command"
1617
1718command_exists () {
1819 local command=" $1 "
@@ -58,7 +59,7 @@ generate_open_command() {
5859generate_open_search_command () {
5960 local engine=" $1 "
6061 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
6263 search_command_generator " $opener " " $engine "
6364 elif is_osx; then
6465 search_command_generator " open" " $engine "
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ display_message() {
3535stored_engine_vars () {
3636 tmux show-options -g |
3737 grep -i " ^@open-" |
38- grep -Evi " ^@open-(editor|opener)" |
38+ grep -Evi " ^@open-(editor|opener|searcher )" |
3939 cut -d ' -' -f2 |
4040 cut -d ' ' -f1 |
4141 xargs
You can’t perform that action at this time.
0 commit comments