Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support repeatable key bindings #5

Open
spywhere opened this issue Feb 12, 2022 · 0 comments
Open

Support repeatable key bindings #5

spywhere opened this issue Feb 12, 2022 · 0 comments

Comments

@spywhere
Copy link
Owner

Commands such as resize the pane are expected to be repeatable, that is to be able to hold the key sequence to repeat the operation. Currently this would get consumed by vim as the sequence is required 2 steps (prefix then the key).

Idea for implementation

Create a custom key map table. Pressing prefix would rebind all vim key map to all key bindings starts with prefix. Then if there is no key press after certain amount of time, cancelled the key map back to the previous one.

This would mimicking a custom mode in vim, where pressing prefix could put vim into "tmux" mode.

Current workaround

Use vim count to repeat the key bindings for certain amount of times.

@spywhere spywhere mentioned this issue Feb 12, 2022
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant