omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
718 stars 63 forks source link

šŸš€ New Bind keys #19

Closed ProgmRuanSilva closed 9 months ago

ProgmRuanSilva commented 9 months ago

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.

  1. Renamed functions from handle_args() to better reflect their respective modes.
  2. Implemented the handle_binds() method in scripts/sessionx.
  3. Updated HEADER to display the bindkey variables.
  4. Included new options for selecting, exiting, deleting, and accepting within sessionx.

Test Plan

  1. 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)
omerxx commented 9 months ago

Thanks @ProgmRuanSilva Checking now!

omerxx commented 9 months ago

LGTM