{"id":13895994,"url":"https://github.com/orbitalquark/textadept-ctags","last_synced_at":"2025-02-28T18:45:18.488Z","repository":{"id":110379750,"uuid":"302177926","full_name":"orbitalquark/textadept-ctags","owner":"orbitalquark","description":"Utilize Ctags with Textadept.","archived":false,"fork":false,"pushed_at":"2023-02-13T14:25:57.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"default","last_synced_at":"2025-01-11T11:12:32.980Z","etag":null,"topics":["ctags","textadept","textadept-module"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orbitalquark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-07T22:46:20.000Z","updated_at":"2024-11-25T08:11:54.000Z","dependencies_parsed_at":"2023-04-13T03:04:51.824Z","dependency_job_id":null,"html_url":"https://github.com/orbitalquark/textadept-ctags","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitalquark%2Ftextadept-ctags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitalquark%2Ftextadept-ctags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitalquark%2Ftextadept-ctags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbitalquark%2Ftextadept-ctags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orbitalquark","download_url":"https://codeload.github.com/orbitalquark/textadept-ctags/tar.gz/refs/heads/default","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241202213,"owners_count":19926564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctags","textadept","textadept-module"],"created_at":"2024-08-06T18:02:36.129Z","updated_at":"2025-02-28T18:45:18.463Z","avatar_url":"https://github.com/orbitalquark.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# Ctags\n\nUtilize Ctags with Textadept.\n\nInstall this module by copying it into your *~/.textadept/modules/* directory or Textadept's\n*modules/* directory, and then putting the following in your *~/.textadept/init.lua*:\n\n    require('ctags')\n\nThere will be a \"Search \u003e Ctags\" menu.\n\nThere are four ways to tell Textadept about *tags* files:\n\n  1. Place a *tags* file in a project's root directory. This file will be used in a tag\n    search from any of that project's source files.\n  2. Add a *tags* file or list of *tags* files to the [`ctags`](#ctags) module for a project root key.\n     This file(s) will be used in a tag search from any of that project's source files. For\n     example: `ctags['/path/to/project'] = '/path/to/tags'`.\n  3. Add a *tags* file to the [`ctags`](#ctags) module. This file will be used in any tag search. For\n     example: `ctags[#ctags + 1] = '/path/to/tags'`.\n  4. As a last resort, if no *tags* files were found, or if there is no match for a given\n     symbol, a temporary *tags* file is generated for the current file and used.\n\nTextadept will use any and all *tags* files based on the above rules.\n\n## Generating Ctags\n\nThis module can also help generate Ctags files that can be read by Textadept. This is\ntypically configured per-project. For example, a C project might want to generate tags for\nall files and subdirectories in a *src/* directory:\n\n    ctags.ctags_flags['/path/to/project'] = '-R src/'\n\nA Lua project has a couple of options for generating tags:\n\n    -- Use ctags with some custom flags for improved Lua parsing.\n    ctags.ctags_flags['/path/to/project'] = ctags.LUA_FLAGS\n\nThen, invoking Search \u003e Ctags \u003e Generate Project Tags menu item will generate the tags file.\n\n## Key Bindings\n\nWindows and Linux | macOS | Terminal | Command\n-|-|-|-\n**Search**| | |\nF12 | F12 | F12 | Go to Ctag\nShift+F12 | ⇧F12 | S-F12 | Go to Ctag...\n\n## Fields defined by `ctags`\n\n\u003ca id=\"ctags.LUA_FLAGS\"\u003e\u003c/a\u003e\n### `ctags.LUA_FLAGS` \n\nA set of command-line options for ctags that better parses Lua code.\nCombine this with other flags in [`ctags.ctags_flags`](#ctags.ctags_flags) if Lua files will be parsed.\n\n\u003ca id=\"ctags.ctags\"\u003e\u003c/a\u003e\n### `ctags.ctags` \n\nPath to the ctags executable.\nThe default value is `'ctags'`.\n\n\n## Functions defined by `ctags`\n\n\u003ca id=\"_G.textadept.editing.autocompleters.ctag\"\u003e\u003c/a\u003e\n### `_G.textadept.editing.autocompleters.ctag`()\n\nAutocompleter function for ctags. (Names only; not context-sensitive).\nDoes not remove duplicates.\n\n\u003ca id=\"ctags.goto_tag\"\u003e\u003c/a\u003e\n### `ctags.goto_tag`(*tag*)\n\nJumps to the source of string *tag* or the source of the word under the caret.\nPrompts the user when multiple sources are found.\n\nParameters:\n\n- *tag*:  The tag to go to the source of.\n\nReturn:\n\n- whether or not a tag was found and jumped to.\n\n\n## Tables defined by `ctags`\n\n\u003ca id=\"ctags.ctags_flags\"\u003e\u003c/a\u003e\n### `ctags.ctags_flags`\n\nMap of project root paths to string command-line options, or functions that return such\nstrings, that are passed to ctags when generating project tags.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbitalquark%2Ftextadept-ctags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forbitalquark%2Ftextadept-ctags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbitalquark%2Ftextadept-ctags/lists"}