Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/savetheclocktower/symbol-provider-ctags
Provides symbols to symbols-view via `ctags`
https://github.com/savetheclocktower/symbol-provider-ctags
Last synced: about 1 month ago
JSON representation
Provides symbols to symbols-view via `ctags`
- Host: GitHub
- URL: https://github.com/savetheclocktower/symbol-provider-ctags
- Owner: savetheclocktower
- License: other
- Created: 2023-05-02T00:09:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-03T01:24:46.000Z (about 1 year ago)
- Last Synced: 2023-12-03T02:23:26.640Z (about 1 year ago)
- Language: JavaScript
- Size: 452 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# symbol-provider-ctags package
Provides symbols to `symbols-view` via `ctags`.
This is the approach historically used by `symbols-view` — now spun out into its own “provider” package among several.
This symbol provider will typically be used on non-Tree-sitter grammars, and possibly when performing a project-wide search. Symbol-based navigation on files with Tree-sitter grammars will typically be provided by `symbol-provider-tree-sitter`.
## Language support
This provider supports any language that is present in its config file, and detects any symbols that match the specified patterns. If your language isn’t supported and you can help add support, we’ll happily accept a pull request.
## Toggle file symbols
For the **Symbols View: Toggle File Symbols** command, `ctags` will scan the file on disk and emit its tag information to stdout, where it is read by this package. You don’t need a `TAGS` file to do a symbol search within a single file.
## Toggle Project Symbols, Go To Declaration
These commands require a tags file, typically defined at `.tags`/`tags`/`.TAGS`/`TAGS` in the root of your project. This package cannot generate (or regenerate) your tags file, since it doesn’t know which files to include. You can run `ctags` regularly on your own to generate this file. Consult [the documentation for Exuberant Ctags](https://ctags.sourceforge.net/ctags.html) for more information.
Once your tags file is present, these commands can be fulfilled by `symbol-provider-ctags`…
* The **Symbols View: Toggle Project Symbols** command works like **Symbols View: Toggle File Symbols** described above, except it’ll show you symbols from the entire project.
* The **Symbols View: Go To Declaration** command works like **Symbols View: Toggle Project Symbols**, except the word under the cursor will be pre-filled in the search box, and a result will automatically be opened if it is the only result.