1

I currently use tagbar to list all the methods in my php files. However I have to do several steps in order to navigate to a specific method in the file like so: enter image description here

  1. run the keyboard shortcut to display tagbar (F8)
  2. jump from the left pane to the right ctrlw +
  3. search for the said method name or navigate to it using the keyboard

I would like to simply hit a keyboard shortcut, and i would be able to simply fuzzy search the methods in the existing file and jump to it, similar to how the fzf vim plugin lets you fuzzy search files:

enter image description here

10
  • fzf has :Tags you can try
    – Maxim Kim
    Nov 10, 2020 at 7:02
  • not sure how to run that from the command line? :fzf tags or :fzg :tags? neither worked
    – abbood
    Nov 10, 2020 at 7:07
  • github.com/junegunn/fzf.vim :Tags or :BTags commands
    – Maxim Kim
    Nov 10, 2020 at 7:54
  • the :Tags works perfectly, but when I run :BTags I get this ugly error Error running cat '/var/folders/1b/3wwzdg214cz57k2nccl_9d5c0000gn/T/vxOBh5q/14'|'/Users/abdullah/.vim/bundle/fzf/bin/fzf' '--layout=reverse-list' ' -m' '-d' '\t' '--with-nth' '1,4..' '-n' '1' '--prompt' 'BTags> ' '--query' '' --expect=ctrl-v,ctrl-x,ctrl-t --height=10 > /var/folders/1b/3wwzdg214c z57k2nccl_9d5c0000gn/T/vxOBh5q/13 how do i debug such a thing?
    – abbood
    Nov 10, 2020 at 9:53
  • when i run that same command from the CLI, it says: cat: /var/folders/1b/3wwzdg214cz57k2nccl_9d5c0000gn/T/vxOBh5q/14: No such file or directory I imagine fzf should take care of creating that directory right?
    – abbood
    Nov 10, 2020 at 9:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.