diff options
| author | omagdy <omar.professional8777@gmail.com> | 2025-07-17 19:15:29 +0300 |
|---|---|---|
| committer | omagdy <omar.professional8777@gmail.com> | 2025-07-17 19:15:29 +0300 |
| commit | 14d2af5be5d3c7c7d04345399feed63480a0d1cf (patch) | |
| tree | 49dc1b82ce1d45003f40e0da947c767f9c1e6790 /tmux | |
| parent | 52d21d68621c9d3dd2a8a6d4bb50acca31e99ee4 (diff) | |
| download | dotfiles-14d2af5be5d3c7c7d04345399feed63480a0d1cf.tar.xz dotfiles-14d2af5be5d3c7c7d04345399feed63480a0d1cf.zip | |
Random tinkering
Diffstat (limited to 'tmux')
| -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 |
