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

Unable to remap ^s to zsh binding #298

Open
snikoletopoulos opened this issue Oct 27, 2024 · 0 comments
Open

Unable to remap ^s to zsh binding #298

snikoletopoulos opened this issue Oct 27, 2024 · 0 comments

Comments

@snikoletopoulos
Copy link

Unable to remap ^s to zsh binding

  • Terminal program: tmux 3.5a (wezterm)
  • Operating system: macOS 15.0.1 (24A348)
  • ZSH framework: starship 1.21.1, zinit v3.13.1-11-gd05a5301 (darwin24.0_arm64)
  • ZSH version: zsh 5.9 (arm64-apple-darwin24.0)
  • ZVM version: zsh-vi-mode 0.11.0 (8c2556c, 2024-10-13 11:28:35 +0200)

Basic examination

  • [ x] I have read through the README page
  • [ x] I have the latest version of zsh-vi-mode
  • [ x] I have tested with another terminal program

Problem description

I had a mapping to ^s. When loading ZVM I lose this binding.

I tried to use this function, but it didn't work

function zvm_after_lazy_keybindings() {
	zvm_define_widget pet-select

	bindkey '^s' pet-select
}

Reproduction steps

  1. Load this snippet to use pet in ^s
pet-select() {
	BUFFER=$(pet search --query "$LBUFFER")
	CURSOR=$#BUFFER
	zle redisplay
}
zle -N pet-select
stty -ixon
bindkey '^s' pet-select
  1. Load ZVM
  2. Try pressing ^s. There is a text showing fwd-i-search: _ but not the pet snippet dialog.

pet is triggered and the dialog is shown.

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