Skip to content

Commit

Permalink
feat(tmux): shortcut to open term in popup for quick stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 27, 2023
1 parent acdbf3d commit 9aff5a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 @@ -50,6 +50,7 @@ bind h select-pane -L
bind l select-pane -R
bind r source-file ~/.tmux.conf

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

0 comments on commit 9aff5a5

Please sign in to comment.