File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,20 @@ get_editor_from_the_env_var() {
34
34
fi
35
35
}
36
36
37
+ preserve_url_hash () {
38
+ echo " sed s/##/####/g"
39
+ }
40
+
37
41
command_generator () {
38
42
local command_string=" $1 "
39
- echo " xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \" {}\" > /dev/null'"
43
+ echo " $( preserve_url_hash ) | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string \" {}\" > /dev/null'"
40
44
}
41
45
42
46
search_command_generator () {
43
47
local command_string=" $1 "
44
48
local engine=" $2 "
45
49
46
- echo " sed 's/\ /+/g' | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string $engine \" {}\" > /dev/null'"
50
+ echo " $( preserve_url_hash ) | sed 's/\ /+/g' | xargs -I {} tmux run-shell -b 'cd #{pane_current_path}; $command_string $engine \" {}\" > /dev/null'"
47
51
}
48
52
49
53
generate_open_command () {
@@ -80,7 +84,7 @@ generate_editor_command() {
80
84
local editor=$( get_tmux_option " $open_editor_override " " $environment_editor " )
81
85
# vim freezes terminal unless there's the '--' argument. Other editors seem
82
86
# to be fine with it (textmate [mate], light table [table]).
83
- echo " xargs -I {} tmux send-keys '$editor -- \" {}\" '; tmux send-keys 'C-m'"
87
+ echo " $( preserve_url_hash ) | xargs -I {} tmux send-keys '$editor -- \" {}\" '; tmux send-keys 'C-m'"
84
88
}
85
89
86
90
set_copy_mode_open_bindings () {
You can’t perform that action at this time.
0 commit comments