Module textadept.pm.browsers.ctags
CTags Browser for the Textadept project manager. It is enabled with the prefix 'ctags' in the project manager entry field followed by either nothing or ':' and the path to a ctags file. If no path is specified, the current file is parsed via ctags and its structure shown.
Functions
get_contents_for (full_path, expanding) |
If not expanding, creates the entire tree; otherwise returns the child table of the parent being expanded. |
matches (entry_text) |
Matches 'ctags:[/absolute/path/to/ctags/file]' |
Tables
container |
Table used to determine if a tag kind is a container or not in a specific language. |
container_construct |
Table used to determine if a construct name is a container or not in a specific language. |
language |
Table of associations of file extensions with languages. |
pixbuf |
Table of associations of tag identifier types for specific languages with GTK stock-id pixbufs. |
tags |
The table of ctags with property values. |
Functions
- get_contents_for (full_path, expanding)
-
If not expanding, creates the entire tree; otherwise returns the child table of the parent being expanded.
Parameters
- matches (entry_text)
-
Matches 'ctags:[/absolute/path/to/ctags/file]'
Parameters
Tables
- container
- Table used to determine if a tag kind is a container or not in a specific language. Top-level keys are language names from the languages table with table values. These table values have tag kind keys with boolean values indicating if they are containers or not.
- container_construct
- Table used to determine if a construct name is a container or not in a specific language. Top-level keys are language names from the languages table with table values. These table values have construct name keys with boolean values indicating if they are containers or not.
- language
- Table of associations of file extensions with languages.
- pixbuf
- Table of associations of tag identifier types for specific languages with GTK stock-id pixbufs.
- tags
- The table of ctags with property values. Each key is the name of a ctags identifier (function, class, etc.) and the value is a table containing: * The GTK stock-id for the pixbuf to display next to the identifier in the tree view (pixbuf key). * The display text used for displaying the identifier in the tree view (text key). * Boolean parent value if the identifier is a container. * The line number or pattern used to goto the identifier. Note this table is returned by get_contents_for, but only 'pixbuf', 'text' and 'parent' fields are read; all others are ignored.