Few ideas discussed offline with @ericdallo
C-3 M-x lsp-breadcrumb-open will go to the third element in the breadcrumb (unique)~ https://github.com/emacs-lsp/lsp-mode/pull/1901avy (unique)Maybe We could make use of header-lines
@wpchou we currently use header-line-format to build the LSP headerline already :)
Some additional ideas we could implement from old Emacs Semantic: https://www.gnu.org/software/emacs/manual/html_node/semantic/Sticky-Func-Mode.html
@danielmartin Yeah, this mode seems really nice for our use case, can we use it or is it deprecated?
It's not deprecated, but it may be a bit coupled to Semantic. We can get ideas from it. For example, I like the idea of copying or narrowing to function. Narrowing from the breadcrumb may be more useful than what VSCode offers. You could focus on only one function, perform search and replace locally, or even undo only in that particular function.
I think that middle-click on the file name should reset the narrowing.
I updated the issue description with the current status on master
Most helpful comment
It's not deprecated, but it may be a bit coupled to Semantic. We can get ideas from it. For example, I like the idea of copying or narrowing to function. Narrowing from the breadcrumb may be more useful than what VSCode offers. You could focus on only one function, perform search and replace locally, or even undo only in that particular function.