hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

Feature Request: Sidebar live filter #31

Closed kevintraver closed 8 months ago

kevintraver commented 9 months ago

Feature Request: Ability to filter the list of symbols in the sidebar view.

hedyhli commented 9 months ago

Hi, can you describe in more detail how this feature works? Is it a 'live' filtering, by fzf? by kind?

Note that at the moment we do have the symbols.filter config option, just that you can't do it live on the sidebar.

kevintraver commented 9 months ago

Yes, It would be a live filter, by symbol name. As you type, it would narrow down the list of symbols in the sidebar.

Could maybe be similar to how how neo-tree does fuzzy_finder

hedyhli commented 8 months ago

I recently discovered :Telescope lsp_document_symbols, and it seems to achieve what you proposed, other than the fact that it cannot be easily configured to look like the outline UI.

Unfortunately under the current architecture and priorities, this feature would not be an achievable task that remains self-contained and fitting for outline.nvim's goals in providing a window of symbols outline. Telescope integration is planned (#17), and before which telescope itself provides lsp_* commands that do similar things, so I've decided that this feature is out of scope for now.

Unless you don't use (and don't wish to use) telescope, in which case I recommend using the native / search and set up autocommands that will clear highlights :noh when an item is selected. If you want an example of how to set this up I can gladly show you.

Hence I will close this as not-planned at the moment as there are other issues of higher priority.