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

[bug]: Plugin breaks option-delete behavior on iterm #71

Open
kfernandez31 opened this issue Sep 4, 2024 · 1 comment
Open

[bug]: Plugin breaks option-delete behavior on iterm #71

kfernandez31 opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kfernandez31
Copy link

kfernandez31 commented Sep 4, 2024

Describe the bug

Hi,

I'd love to use this plugin over zsh-users/zsh-syntax-highlighting but can't because of the broken behavior for option-delete on iTerm. Namely, by setting the key combination to send 0x17 or 0x1b 0x7f (enabled with the "Natural Text Editing" preset) one can perform "intelligent backward delete word" which will delete all characters after the first word delimiter encountered to the left. This is particularly useful for deleting parts of file paths.

Steps to reproduce

  1. Run option+delete with the "Natural Text Editing" and the plugin enabled with zinit light zdharma-continuum/fast-syntax-highlighting on the string foo/bar/baz . The whole path gets deleted.

Expected behavior

  1. Do the same but without the plugin. Obtain foo/bar/.

Screenshots and recordings

No response

Operating System & Version

darwin23.0 | apple | x86_64 | arm64 | arm64 arm

Zsh version

zsh 5.9 (x86_64-apple-darwin23.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

These don't affect anything but still including them:

zinit light zsh-users/zsh-history-substring-search
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
@kfernandez31 kfernandez31 added the bug Something isn't working label Sep 4, 2024
@kfernandez31
Copy link
Author

Manually adding a bindkey to my .zshrc that'd set the key combination to send eg. 0x17 does not fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant