diff --git a/commands.json b/commands.json index 6b4a5c8..0336f00 100644 --- a/commands.json +++ b/commands.json @@ -112,13 +112,12 @@ }, { "icon": "󱂬", - "title": "Sessions (sessionx)", - "description": "fuzzy switch, create, rename, kill", + "title": "Sessions", + "description": "sessions, windows, zoxide: switch, create, rename, kill", "category": "Sessions", "shortcut": "Ctrl+Shift+O", - "action": { - "tmux": "run-shell '~/.config/tmux/plugins/tmux-sessionx/scripts/sessionx.sh'" - } + "aliases": ["sx", "ss"], + "action": { "palette": "sessions" } }, { "icon": "", diff --git a/palettes/sessions.json b/palettes/sessions.json new file mode 100644 index 0000000..9c20c9f --- /dev/null +++ b/palettes/sessions.json @@ -0,0 +1,13 @@ +{ + "title": "Sessions", + "command": "~/.local/bin/tmux-sessions", + "grouped": true, + "emptyText": "No sessions", + "query": { + "icon": "󰿄", + "category": "New", + "title": "{}", + "description": "switch to, or new session in its zoxide match", + "action": { "shell": "~/.local/bin/tmux-sessions --new {}" } + } +}