mirror of
https://github.com/prdlk/television.git
synced 2026-11-03 05:27:43 +00:00
Import from root chezmoi source
This commit is contained in:
commit
c8c8c9a000
77 files changed
+2443
No files matched your search
@@ -0,0 +1,22 @@
|
||||
[metadata]
|
||||
name = "tmux-windows"
|
||||
description = "List and switch between tmux windows"
|
||||
requirements = ["tmux"]
|
||||
|
||||
[source]
|
||||
command = "tmux list-windows -a -F '#{session_name}:#{window_index}\t#{window_name}\t#{pane_current_command}'"
|
||||
display = "{split:\t:0} - {split:\t:1} ({split:\t:2})"
|
||||
output = "{split:\t:0}"
|
||||
|
||||
[preview]
|
||||
command = "tmux capture-pane -t '{split:\t:0}' -p 2>/dev/null || echo 'No preview available'"
|
||||
|
||||
[actions.select]
|
||||
description = "Switch to the selected window"
|
||||
command = "tmux select-window -t '{split:\t:0}'"
|
||||
mode = "execute"
|
||||
|
||||
[actions.kill]
|
||||
description = "Kill the selected window"
|
||||
command = "tmux kill-window -t '{split:\t:0}'"
|
||||
mode = "fork"
|
||||
Reference in new issue
Block a user