Hi,

On Sun, Dec 29, 2019 at 12:20 AM Francisco Giordano <
[email protected]> wrote:

> Plugins like LSP clients are now using settagstack to replicate the
> behavior of C-], but the provided API only allows replacing the entire
> stack or appending to it, which makes it non-trivial to replicate the
> native tagstack behavior.
>
> Natively, jumping to a tag will insert the new tag at the current index,
> and remove everything that came after it. This allows "tree like"
> navigation through tags, by using C-T to go up in the stack and then
> jumping to a different tag branching off in a different direction.
>
> I think settagstack should have a third mode to replace the tagstack
> entries from the current index up to the end, so as to easily replicate
> native tag navigation. Without this mode, plugin authors either manually
> reimplement it as in vim-lsp
> <https://github.com/prabirshrestha/vim-lsp/blob/master/autoload/lsp/ui/vim.vim#L456-L476>,
> or simply use append without being aware of the difference in behavior.
>

Can you try the latest version of Vim and see whether the new truncate
tagstack functionality meets your requirement?

Thanks,
Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7nUHxxPz6E9CEGKJC6Scjaucd7QuW57WtZo%3DLnEgVf18Q%40mail.gmail.com.

Raspunde prin e-mail lui