File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ bind c new-window -c "~" -n "" \; display-message "Consider using C-t to create
41
41
bind -n C-t new-window -c " ~" -n " "
42
42
43
43
# close a window with C-w (with confirm-before)
44
- bind -n C-w confirm-before -y -p " Close window? (Y/n)" " kill-window"
44
+ # note: am not using -n flag because this would conflict with emacs cut
45
+ bind C-w confirm-before -y -p " Close window? (Y/n)" " kill-window"
45
46
46
47
# split panes using | and -; new pane defaults to current directory
47
48
bind | split-window -h -c " #{pane_current_path}"
@@ -57,8 +58,11 @@ set -g mouse on
57
58
set -g allow-rename off
58
59
59
60
# allow re-ordering of tmux windows (source: https://superuser.com/questions/343572/how-do-i-reorder-tmux-windows)
60
- bind-key Left swap-window -d -t -1
61
- bind-key Right swap-window -d -t +1
61
+ bind Left swap-window -d -t -1
62
+ bind Right swap-window -d -t +1
63
+ # move through windows easily with arrow keys
64
+ bind -n Left previous-window
65
+ bind -n Right next-window
62
66
63
67
# Make messages appear for 3 seconds
64
68
set -g display-time 3000
You can’t perform that action at this time.
0 commit comments