Skip to content

Commit a9e1a1f

Browse files
author
Bruno Sutic
committed
Improve default new-window "c" binding
It creates new panes with the same path as the pane a user is currently in.
1 parent 5074f71 commit a9e1a1f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
### master
44
- split-window bindings "|" and "-" now create a new pane with the same path as
55
the original one the split started from.
6+
- improve the default new-window "c" binding so it creates new windows with the
7+
same path as the current pane
68

79
### v0.0.1, 2014-05-23
810
- first version out

pain_control.tmux

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ pane_split_bindings() {
3939
tmux bind-key "-" split-window -v -c "$PWD"
4040
}
4141

42+
improve_new_window_binding() {
43+
tmux bind-key "c" new-window -c "$PWD"
44+
}
45+
4246
main() {
4347
pane_navigation_bindings
4448
pane_resizing_bindings
4549
pane_split_bindings
50+
improve_new_window_binding
4651
}
4752
main

0 commit comments

Comments
 (0)