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

CTRL+R is overwritten #242

Open
2 of 3 tasks
gabyx opened this issue Sep 13, 2023 · 3 comments
Open
2 of 3 tasks

CTRL+R is overwritten #242

gabyx opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gabyx
Copy link

gabyx commented Sep 13, 2023

General information

Please report the following information as possible as you can:

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 (not applicaple)

Problem description

Some how binding CTRL+R gets overwritten when the plugin is loaded, but this is not mentioned in the readme (?).

This is especially the case when first loading the z-shell/zsh-navigation-tools

Reproduction steps

  1. Use antidote and load first this plugin then immediately after the z-shell/zsh-navigation-tools.
  2. CTRL+R should open up the n-history widget. But instead the normal history bck-i-search is done.

Expected behavior

CTRL+R is not overwritten or reset?

Of course the behavior can be disabled with local ZVM_INIT_MODE=sourcing when first loading this plugin.
I am just confused why this overwrite happens?

@jeffreytse jeffreytse self-assigned this Sep 15, 2023
@jeffreytse jeffreytse added help wanted Extra attention is needed good first issue Good for newcomers labels Sep 15, 2023
@jeffreytse
Copy link
Owner

Hi @gabyx,

Thanks for your issue, I think your problem is similar to #15 as the reason mentioned in README. You can load your specific plugin after zsh-vi-mode is initialized aspect as below.

function zvm_after_init() {
   source "<your_plugin_folder>/zsh-navigation-tools.plugin.zsh"
}

or

function zvm_after_init() {
   zvm_bindkey viins '^R' znt-history-widget
}

Thanks & Regards

@gabyx
Copy link
Author

gabyx commented Sep 15, 2023 via email

@JerAguilon JerAguilon mentioned this issue Jan 17, 2024
3 tasks
@yihuang
Copy link

yihuang commented Feb 21, 2024

I have a similar issue, I was using fzf plugin for the nice history search widget, after installed zvm, I find that when I do Ctrl+R in normal mode, it gives me fzf as before, but in insert mode, it gives me the primitive bck-i-search: prompt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants