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

Cancelling triggers an error #15

Open
MartyLake opened this issue Mar 31, 2021 · 3 comments
Open

Cancelling triggers an error #15

MartyLake opened this issue Mar 31, 2021 · 3 comments

Comments

@MartyLake
Copy link

MartyLake commented Mar 31, 2021

Hello,
When using fzf-tags, if I hit esc, I have an error E684 while processing function 29_callback.
I wish that it would silently return to my previous context before.

Thanks for creating this functionality, I wish the default fzf worked as well as yours

@zackhsi
Copy link
Owner

zackhsi commented Apr 4, 2021

Hey @MartyLake, I'm unable to reproduce. When I press escape, I enter normal mode. When I press "i," fzf reactivates.

Curious if you could reproduce with a minimal vimrc to eliminate other possibilities?

@MartyLake
Copy link
Author

Sure @zackhsi

"""" neovim preamble
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath

"""" vundle preamble
set nocompatible
filetype off
let vundleVimPath = "~/.vim/bundle/Vundle.vim"
let vundleVimInstallPluginPath = "$HOME/.vim/bundle"
exe 'set rtp+=' . expand(vundleVimPath)
call vundle#begin(vundleVimInstallPluginPath)
Plugin 'VundleVim/Vundle.vim'

"""" fzf plugins
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'zackhsi/fzf-tags'

"""" vundle end
call vundle#end()

"""" remapping for convenience
nmap t <Plug>(fzf_tags)

What I do then is

  • open a file in a folder that has a corresponding tags file
  • move cursor to a word
  • press "t" to call fzf_tags, fzf_tags window is shown
  • press "esc" to cancel

image

@zackhsi
Copy link
Owner

zackhsi commented May 2, 2021

Hey @MartyLake, sorry for the delayed response. Unfortunately, I'm unable to reproduce.

In this GIF, this is what I've done:

  1. :nmap t <Plug>(fzf_tags)
  2. Move cursor to a word with tags (CheckScalafmtNg)
  3. Press t, which opens up the tag list
  4. Press ESC, which takes me to normal mode
  5. Navigate around in normal mode
  6. Press i to return to insert mode
  7. Exit FZF with C-c

2021-05-02 10 54 54

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

2 participants