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]: unload and load behavior inconsistent #513

Open
1 task done
vladdoster opened this issue May 1, 2023 · 0 comments
Open
1 task done

[bug]: unload and load behavior inconsistent #513

vladdoster opened this issue May 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vladdoster
Copy link
Member

vladdoster commented May 1, 2023

What happened?

I suspect this is inconsistent behavior

Steps to reproduce

  1. Run the following snippet:
zi ice \
    compile'key-bindings.zsh' \
    dl="$(builtin print -c -- https://raw.githubusercontent.com/junegunn/fzf/master/{shell/{'key-bindings.zsh;','completion.zsh -> _fzf;'},man/{'man1/fzf.1 -> $ZPFX/share/man/man1/fzf.1;','man1/fzf-tmux.1 -> $ZPFX/share/man/man1/fzf-tmux.1;'}})" \
    from'gh-r' \ 
    lbin'!' \
    null \
    src'key-bindings.zsh' \
  @junegunn/fzf
  1. Run zi unload junegunn/fzf
  2. Run zi load junegunn/fzf
  3. Run zi unload junegunn/fzf

Relevant output

Report for junegunn/fzf plugin
------------------------------
Source key-bindings.zsh (reporting enabled)
Zle -N fzf-file-widget
Note: a new widget created via zle -N: `fzf-file-widget'
Bindkey -M emacs '^T' fzf-file-widget
Bindkey -M vicmd '^T' fzf-file-widget
Bindkey -M viins '^T' fzf-file-widget
Zle -N fzf-cd-widget
Note: a new widget created via zle -N: `fzf-cd-widget'
Bindkey -M emacs '\ec' fzf-cd-widget
Bindkey -M vicmd '\ec' fzf-cd-widget
Bindkey -M viins '\ec' fzf-cd-widget
Zle -N fzf-history-widget
Note: a new widget created via zle -N: `fzf-history-widget'
Bindkey -M emacs '^R' fzf-history-widget
Bindkey -M vicmd '^R' fzf-history-widget
Bindkey -M viins '^R' fzf-history-widget

Functions created:
__fsel             __fzfcmd
fzf-cd-widget      fzf-file-widget
fzf-history-widget 

Completions:
_fzf [enabled]

Screenshots and recordings

Screenshot 2023-05-01 at 00 19 52

Operating System & Version

OS: darwin22.2.0 | Vendor: apple | Machine: arm | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9.0.1-dev (arm-apple-darwin22.2.0)

Terminal emulator

xterm-kitty

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vladdoster vladdoster added the bug Something isn't working label May 1, 2023
@vladdoster vladdoster self-assigned this May 1, 2023
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