devlog: textDocument/documentSymbol

This commit is contained in:
CJ van den Berg 2025-11-19 10:47:50 +01:00
parent 7f53e5f523
commit 77b458d4c2
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 11 additions and 0 deletions

View file

@ -15,6 +15,17 @@ them.
You can [subscribe to this page via RSS]($link.page('devlog').alternative('rss')) and find more
devlog entries in the [archive](/devlog/).
## [textDocument/documentSymbol]($section.id("2025-11-19T10:39:21+01:00"))
Flow now has a symbol browser for the current document based on the LSP `textDocument/documentSymbol`
request. Open it in flow mode with `ctrl+shift+\`. As usual the list can be filtered with a fuzzy
query. Navigating in the list will preview the location of the symbol in the document. Selecting
a symbol will jump to it. The preview function is nice to quickly view another symbol without
jumping away for your current file location.
[]($image.asset('2025-11-19.png'))
## [centered view]($section.id("2025-11-17T20:56:38+01:00"))
For very wide screens you can now center the view with `ctrl+k x`, or the command

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 KiB