Skip to content

Keep track of shell/zsh vi modes to bindkey? #250140

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

Open
doanngochieuo opened this issue May 30, 2025 · 0 comments
Open

Keep track of shell/zsh vi modes to bindkey? #250140

doanngochieuo opened this issue May 30, 2025 · 0 comments
Assignees

Comments

@doanngochieuo
Copy link

Say i use zsh in vi modes (normal, insert) under vscode's terminal, i want to bindkeys base on conditions of terminalFocus and the shell (zsh)'s modes (normal or insert).

Currently there's no way to do that, but still the case, this will free a lot of keybinds to map base on those conditions.

Say i want to keep cmd+b to its default toggleSideBar, but also want to use it as ctrl+b to go back one char under terminal if the shell's mode is insert, otherwise keep it as default to toggleSideBar (normal mode).

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

3 participants