[neovim] cleaned up duplicate of tmux-navigation plugin
[tmux] added keymaps for copy mode
This commit is contained in:
@@ -3,15 +3,20 @@ unbind C-b
|
||||
set-option -g prefix C-Space
|
||||
|
||||
# general keybindings
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "config reloaded"
|
||||
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "config reloaded"
|
||||
|
||||
# navigation and modes
|
||||
set-window-option -g mode-keys vi
|
||||
bind-key -n M-c copy-mode
|
||||
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||
|
||||
# window navigation
|
||||
bind -n M-Left previous-window
|
||||
bind -n M-Right next-window
|
||||
bind-key -n M-Left previous-window
|
||||
bind-key -n M-Right next-window
|
||||
bind-key -n M-S-Left swap-window -t -1 -d
|
||||
bind-key -n M-S-Right swap-window -t +1 -d
|
||||
#bind-key -n M-S-Left move-window -b -s +0 -t -1
|
||||
#bind-key -n M-S-Right move-window -a -s +0 -t +1
|
||||
|
||||
# pane navigation
|
||||
bind -n M-j swap-pane -D
|
||||
@@ -38,19 +43,19 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R
|
||||
bind-key -T copy-mode-vi 'C-\' select-pane -l
|
||||
|
||||
# keymaps for working with split windows
|
||||
bind v split-pane -v -c "#{pane_current_path}"
|
||||
bind h split-pane -h -c "#{pane_current_path}"
|
||||
bind b break-pane
|
||||
bind-key v split-pane -v -c "#{pane_current_path}"
|
||||
bind-key h split-pane -h -c "#{pane_current_path}"
|
||||
bind-key b break-pane
|
||||
unbind t
|
||||
bind t command-prompt -p "move pane to window:" "join-pane -t '%%'"
|
||||
bind-key t command-prompt -p "move pane to window:" "join-pane -t '%%'"
|
||||
|
||||
bind -n M-F1 select-layout even-horizontal
|
||||
bind -n M-F2 select-layout main-vertical
|
||||
bind -n M-F3 select-layout tiled
|
||||
bind-key -n M-F1 select-layout even-horizontal
|
||||
bind-key -n M-F2 select-layout main-vertical
|
||||
bind-key -n M-F3 select-layout tiled
|
||||
|
||||
unbind x
|
||||
bind x kill-pane -t +0
|
||||
bind-key x kill-pane -t +0
|
||||
|
||||
# detach current session and close terminal
|
||||
bind k run "tmux detach -P"
|
||||
bind-key k run "tmux detach -P"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user