{"id":13544168,"url":"https://github.com/rluba/jai-ctags","last_synced_at":"2025-04-02T14:30:28.603Z","repository":{"id":73421555,"uuid":"267289756","full_name":"rluba/jai-ctags","owner":"rluba","description":"Jai module for generating CTags","archived":false,"fork":false,"pushed_at":"2022-12-29T19:31:36.000Z","size":20,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-03T11:32:39.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rluba.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-27T10:30:48.000Z","updated_at":"2024-04-09T20:25:09.000Z","dependencies_parsed_at":"2023-09-20T03:01:52.124Z","dependency_job_id":null,"html_url":"https://github.com/rluba/jai-ctags","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluba%2Fjai-ctags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluba%2Fjai-ctags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluba%2Fjai-ctags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluba%2Fjai-ctags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rluba","download_url":"https://codeload.github.com/rluba/jai-ctags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246832064,"owners_count":20841101,"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":[],"created_at":"2024-08-01T11:00:43.233Z","updated_at":"2025-04-02T14:30:28.348Z","avatar_url":"https://github.com/rluba.png","language":null,"funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# Jai module for generating Ctags\n\nThis module generates a [ctags file](https://en.wikipedia.org/wiki/Ctags) for your project as part of normal compilation.\nThis allows many editors to access definitions (functions, variables, structs, …) for quick navigation or lookup.\n\n## Usage\n\nIf you don’t yet control compilation via workspaces, you can simply call the included `build_ctags(…)` function from your main file:\n\n```jai\n#import \"ctags\";\n#run build_ctags(#file);\n```\n\nOtherwise, i.e., if you’ve already set up a custom workspace for compilation, you have to init a `CTags` struct and call `process_message(…)` from your compiler message loop:\n\n```jai\n#import \"ctags\";\n\nyour_build_function :: () {\n    w := compiler_create_workspace();\n\t// your compilation setup\n\t…\n\n\tcompiler_begin_intercept(w);\n\n\t// add your build files\n\t…\n\n\t// Set up ctags options\n\tctags: CTags;\n\tctags.base_path = get_working_directory();\n\tdefer reset(*ctags);\n\n\twhile true {\n\t\tmessage := compiler_wait_for_message();\n\t\tif !message continue;\n\n\t\tif message.workspace == w {\n\t\t\t// Forward message to ctags generator\n\t\t\tprocess_message(*ctags, message);\n\t\t}\n\n\t\tif message.kind == .COMPLETE break;\n\t}\n}\n```\n\n## Options\n\nSee the `CTags` struct for available options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frluba%2Fjai-ctags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frluba%2Fjai-ctags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frluba%2Fjai-ctags/lists"}