I prefer using bindkeys with the Alt key modifier, so I've made alterations to the commands.
Additionally, I've incorporated several commands to bind keys within the application.
Renamed functions from handle_args() to better reflect their respective modes.
Implemented the handle_binds() method in scripts/sessionx.
Updated HEADER to display the bindkey variables.
Included new options for selecting, exiting, deleting, and accepting within sessionx.
Test Plan
Open your tmux.conf and place these commands:
set -g @sessionx-bind-accept 'alt-j'
set -g @sessionx-bind-window-mode 'alt-s'
set -g @sessionx-bind-tree-mode 'alt-w'
set -g @sessionx-bind-new-window 'alt-c'
set -g @sessionx-bind-kill-session 'alt-x'
set -g @sessionx-bind-configuration-path 'alt-e'
set -g @sessionx-bind-back 'alt-h'
set -g @sessionx-bind-exit 'alt-q'
set -g @sessionx-bind-scroll-up 'alt-m'
set -g @sessionx-bind-scroll-down 'alt-n'
set -g @sessionx-bind-select-up 'alt-l'
set -g @sessionx-bind-select-down 'alt-k'
set -g @sessionx-bind-delete-char 'alt-p'
set -g @sessionx-bind-abort 'alt-q'
2. Open the sessionx and see if it is working correctly
## Checklist
- [ ] Tests updated
- [x] Docs updated
## Screenshots
![image](https://github.com/omerxx/tmux-sessionx/assets/108758883/2930e77c-3789-46da-bc6c-1a003365c179)
Introducing New Options for Key Rebinding
I prefer using bindkeys with the
Alt
key modifier, so I've made alterations to the commands. Additionally, I've incorporated several commands to bind keys within the application.handle_args()
to better reflect their respective modes.handle_binds()
method in scripts/sessionx.HEADER
to display the bindkey variables.Test Plan
tmux.conf
and place these commands:set -g @sessionx-bind-window-mode 'alt-s' set -g @sessionx-bind-tree-mode 'alt-w' set -g @sessionx-bind-new-window 'alt-c'
set -g @sessionx-bind-kill-session 'alt-x' set -g @sessionx-bind-configuration-path 'alt-e' set -g @sessionx-bind-back 'alt-h' set -g @sessionx-bind-exit 'alt-q' set -g @sessionx-bind-scroll-up 'alt-m' set -g @sessionx-bind-scroll-down 'alt-n'
set -g @sessionx-bind-select-up 'alt-l' set -g @sessionx-bind-select-down 'alt-k'
set -g @sessionx-bind-delete-char 'alt-p' set -g @sessionx-bind-abort 'alt-q'