Andrew Dupont 86cb072c54 [symbols-view] Ensure query field contents are initially selected… 7 月之前
..
keymaps 325b6b6b1e [symbols-view] Remap go-to-declaration commands on Windows/Linux 8 月之前
lib 86cb072c54 [symbols-view] Ensure query field contents are initially selected… 7 月之前
spec 86cb072c54 [symbols-view] Ensure query field contents are initially selected… 7 月之前
styles 33b4eea80d Align icons better alongside symbol names 8 月之前
.eslintrc.js 5514c982bd Add symbol provider packages 9 月之前
README.md 8ba70fba27 First attempted import of `symbols-view` 9 月之前
package.json 51f06683f6 [symbols-view] Implement “prefill with selected text” 8 月之前

README.md

symbols-view

Display a list of symbols in the editor. Typically, a symbol will correspond to a meaningful part of a source code file (like a function definition) but can refer to other important parts of files depending on context.

Providers

symbols-view uses a provider/subscriber model similar to that of autocomplete-plus. This package implements the UI, but it relies on other packages to suggest symbols.

Built-in providers

The original symbol provider, ctags, now lives in its own provider package called symbol-provider-ctags. Another package, symbol-provider-tree-sitter, is the preferred provider (by default) in buffers that use a Tree-sitter grammar.

Community package providers

Any package can act as a symbol provider. These are the packages on the Pulsar Package Repository that provide the symbol.provider service.

Commands

Command Description Keybinding (Linux/Windows) Keybinding (macOS)
symbols-view:toggle-file-symbols Show all symbols in current file ctrl-r cmd-r
symbols-view:toggle-project-symbols Show all symbols in the project ctrl-shift-r cmd-shift-r
symbols-view:go-to-declaration Jump to the symbol under the cursor ctrl-alt-down cmd-alt-down
symbols-view:return-from-declaration Return from the jump ctrl-alt-up cmd-alt-up
symbols-view:show-active-providers Display a list of all known symbol providers

Commands relating to project-wide symbols may fail if no provider can satisfy a request for project-wide symbols. See symbol-provider-ctags for more information.