-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
my effort into replacing ctags jump with fzf.vim's :Tags command #323
Comments
Thanks for sharing. You don't have to change the source code of fzf.vim since you can pass arbitrary options to the autoload function like follows. nnoremap <leader>d :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>
To show the tags in the file in the order they appear in the file, top to bottom. The same goes for |
This is exactly what i wanted & works great, except for the fact that after navigating it's not pushed in the stack i.e I'm not able to come back using Is it possible to push it in that stack somehow when navigating through fzf ? |
Actually find an issue open regarding the same. |
I tried this too. Not really usable:
|
You can get more precise results with nnoremap <leader>d :call fzf#vim#tags('^' . expand('<cword>'), {'options': '--exact --select-1 --exit-0 +i'})<CR> This matches tags starting with the word under cursor but I haven't found a simple way to match the end of the tag since the line in fzf contains path the the tag as well. @hasufell consider Vim's built-in g<C-]> that does exactly what you want, it's just not as pretty as fzf. |
tags jump in vim is not as good as IDE. But fzf makes it better.
In :Tags and :BTags, we search accuracy word under cursor most time. so i config this:
and if there is only one match, most time it is, jumping to that tag position directly is better than showing a fzf window and press enter to jump. Thanks to your wonderful fzf configuration, I change 2 lines in fzf.vim ,simplely add
--select-1 --exit-0
option.now it works very well.
BTW, why there is '--reverse' option on btags but tags has not?
The text was updated successfully, but these errors were encountered: