Skip to content

Commit

Permalink
feat(tmux): c-b c to open new pane as before instead of popup
Browse files Browse the repository at this point in the history
popups are weird, can't enter vimmode to copy/paste etc...
  • Loading branch information
caarlos0 committed Nov 1, 2023
1 parent 6523bbe commit c3ae1f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
# open splits and windows in the current folder
bind u split-window -p 30 -c "#{pane_current_path}"
bind i split-window -p 50 -h -c "#{pane_current_path}"
bind C new-window -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"

# vim-like pane switching
bind o if-shell 'test $(tmux list-panes | wc -l) -gt 1' 'last-pane' 'last-window'
Expand All @@ -51,7 +51,6 @@ bind l select-pane -R
bind r source-file ~/.tmux.conf
unbind C-z

bind-key c display-popup
bind-key t display-popup -w 100 -h 25 -E "tz"
bind-key p run-shell "tmux-sessionizer"
bind-key e run-shell "tmux-gh-dash"
Expand Down

0 comments on commit c3ae1f3

Please sign in to comment.