diff options
Diffstat (limited to 'tmux/.tmux.conf')
| -rw-r--r-- | tmux/.tmux.conf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index d3794a3..b0a549f 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -95,7 +95,7 @@ bind-key g new-window -n lazygit -c "#{pane_current_path}" "lazygit" # open an application in a new window with prefix+o, and allow me to provide the app name bind-key o command-prompt -p "open app: " "new-window '%%'" -# show a promp to kill a window by id with prefix+X +# show a prompt to kill a window by id with prefix+X bind-key X command-prompt -p "kill window: " "kill-window -t '%%'" # use prefix+| (or prefix+\) to split window horizontally and prefix+- or @@ -113,6 +113,14 @@ bind C-e display-popup -E "\ fzf --reverse --header jump-to-session |\ xargs tmux switch-client -t" +# search windows in current session +bind C-f display-popup -E "\ + tmux list-windows -F '#{window_index} #{window_name}' |\ + sed '/^$/d' |\ + fzf --reverse --header jump-to-window |\ + cut -d ' ' -f 1 |\ + xargs tmux select-window -t" + # Move tmux status bar to top bind-key C-k run-shell "tmux set-option -g status-position top;" # Move tmux status bar to bottom |
