fzf-tags icon indicating copy to clipboard operation
fzf-tags copied to clipboard

Cancelling triggers an error

Open MartyLake opened this issue 3 years ago • 3 comments

Hello, When using fzf-tags, if I hit esc, I have an error E684 while processing function <SNR>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

MartyLake avatar Mar 31 '21 10:03 MartyLake

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?

zackhsi avatar Apr 04 '21 06:04 zackhsi

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

MartyLake avatar Apr 04 '21 20:04 MartyLake

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

zackhsi avatar May 02 '21 02:05 zackhsi