From d2aecd69c17fa64305c07333686576152432993d Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Wed, 15 Jul 2026 12:03:58 -0500 Subject: changes. --- tmux-tsunami/modules/common/defaultLeaderMenu.nix | 51 ----------------------- 1 file changed, 51 deletions(-) delete mode 100644 tmux-tsunami/modules/common/defaultLeaderMenu.nix (limited to 'tmux-tsunami/modules/common/defaultLeaderMenu.nix') diff --git a/tmux-tsunami/modules/common/defaultLeaderMenu.nix b/tmux-tsunami/modules/common/defaultLeaderMenu.nix deleted file mode 100644 index 71489e7..0000000 --- a/tmux-tsunami/modules/common/defaultLeaderMenu.nix +++ /dev/null @@ -1,51 +0,0 @@ -{tsunamiLib, ...}: let - inherit (tsunamiLib) scriptPath; -in { - tsunami.scripts = { - "find-pane" = '' - display_format="#{window_name} #{pane_title} #{pane_current_path} #{pane_current_command}" - hidden_format="#{session_name}:#{window_id}:#{pane_id}" - - # select pane - selected=$(tmux list-panes -a -F "$hidden_format:$display_format" | fzf --delimiter=: --with-nth 4 --color=hl:2) - [ -z "$selected" ] || exit - - # switch to selected - args=(''\${selected//:/ }) - tmux select-pane -t ''\${args[2]} && tmux select-window -t ''\${args[1]} && tmux switch-client -t ''\${args[0]} - ''; - - "search-pane" = '' - trap 'rm -f -- "''\${scrollback:-}"' EXIT - scrollback="$(mktemp)" - - tmux capture-pane -e -p -S - > "$scrollback" - cat "$scrollback" | fzf --ansi - - exit 0 - ''; - }; - - tsunami.keys.leader = [ - { - name = "Find Pane"; - key = "C-w"; - exec = ''run-shell "${scriptPath "minibuffer"} '${scriptPath "find-pane"}'"''; - } - { - name = "Search Pane"; - key = "C-/"; - exec = ''run-shell "${scriptPath "minibuffer"} '${scriptPath "search-pane"}'"''; - } - { - name = "Detach"; - key = "C-d"; - exec = "detach"; - } - { - name = "Reload"; - key = "C-r"; - exec = "source-file ~/.config/tmux/tmux.conf"; - } - ]; -} -- cgit v1.3.1