Skip to content

Commit b6972c6

Browse files
Allowing to search phrases
Currently I'm getting this unexpected behavior ``` open https://www.google.com/search?q="resources+based policy" > /dev/stdout' returned 1 ``` The engine search doesn't work because of a missing `+` when you have more than 2 words in the target string.
1 parent ab428e7 commit b6972c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

open.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ search_command_generator() {
4343
local command_string="$1"
4444
local engine="$2"
4545

46-
echo "xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string $engine\"{}\" > /dev/null'"
46+
echo "sed 's/\ /+/g | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string $engine\"{}\" > /dev/null'"
4747
}
4848

4949
generate_open_command() {

0 commit comments

Comments
 (0)