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

Plugin conflicts with zim input double-dot expand #311

Open
3 tasks done
vidjul opened this issue Jan 11, 2025 · 1 comment
Open
3 tasks done

Plugin conflicts with zim input double-dot expand #311

vidjul opened this issue Jan 11, 2025 · 1 comment

Comments

@vidjul
Copy link

vidjul commented Jan 11, 2025

General information

  • Terminal program: ghostty 1.0.1 (xterm-ghostty)
  • Operating system: macOS 14.1.1 (23B81)
  • ZSH framework: (not showing up in zvm_system_report, but I am using zim)
  • ZSH version: zsh 5.9 (x86_64-apple-darwin23.0)
  • ZVM version: zsh-vi-mode 0.11.0

Basic examination

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

Problem description

It seems the plugin prevents the expansion feature from working properly. I had a quick look at the plugin code source, and it seems the bindings defined here are being overwritten.

Reproduction steps

  1. Install zim (I've done it via https://github.com/zimfw/zimfw?tab=readme-ov-file#automatic-installation)
  2. Add zsh-vi-mode plugin to your plugins list in .zimrc, after input module
zmodule input

# Vi mode
zmodule jeffreytse/zsh-vi-mode
  1. Make sure double-dot expansion feature is enabled in .zshrc (should be done before module init):
# --------------------
# Module configuration
# --------------------


#
# input
#

# Append `../` to your input for each `.` you type after an initial `..`
zstyle ':zim:input' double-dot-expand yes

Expected behavior

This is what's happening with and withoutout the plugin when typing adding . to .. :

Enregistrement.de.l.ecran.2025-01-11.a.12.48.59.mov
@vidjul
Copy link
Author

vidjul commented Jan 11, 2025

I've ended up adding the following line in my .zshrc after plugin init:

# Add back double-dot-expand that got removed by zsh-vi-mode
zvm_bindkey viins '.' double-dot-expand

Not sure if it is the best solution though, any thoughts?

Thanks a lot!

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