File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 5
5
the original one the split started from.
6
6
- improve the default new-window "c" binding so it creates new windows with the
7
7
same path as the current pane
8
+ - bugfix for "|", "-" and "c" bindings - setting the correct path in new windows
9
+ wasn't working properly with "$PWD". Changed to "#{pane_current_path}".
8
10
9
11
### v0.0.1, 2014-05-23
10
12
- first version out
Original file line number Diff line number Diff line change @@ -35,12 +35,13 @@ pane_resizing_bindings() {
35
35
}
36
36
37
37
pane_split_bindings () {
38
- tmux bind-key " |" split-window -h -c " $PWD "
39
- tmux bind-key " -" split-window -v -c " $PWD "
38
+ echo $PWD
39
+ tmux bind-key " |" split-window -h -c " #{pane_current_path}"
40
+ tmux bind-key " -" split-window -v -c " #{pane_current_path}"
40
41
}
41
42
42
43
improve_new_window_binding () {
43
- tmux bind-key " c" new-window -c " $PWD "
44
+ tmux bind-key " c" new-window -c " #{pane_current_path} "
44
45
}
45
46
46
47
main () {
You can’t perform that action at this time.
0 commit comments