Skip to content

Plugin conflicts with zim input double-dot expand #311

Open
@vidjul

Description

@vidjul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions