{"id":21195393,"url":"https://github.com/fallenmax/naive-definitions","last_synced_at":"2025-07-10T04:30:25.495Z","repository":{"id":70179021,"uuid":"114538924","full_name":"FallenMax/naive-definitions","owner":"FallenMax","description":"Naive 'Go to Definitions'","archived":false,"fork":false,"pushed_at":"2024-08-14T14:56:56.000Z","size":231,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-14T16:24:20.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=FallenMax.naive-definitions","language":"TypeScript","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/FallenMax.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-17T13:35:26.000Z","updated_at":"2024-08-14T14:57:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"c530359a-ee8b-4614-a7b1-0c6c92124293","html_url":"https://github.com/FallenMax/naive-definitions","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/FallenMax%2Fnaive-definitions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FallenMax%2Fnaive-definitions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FallenMax%2Fnaive-definitions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FallenMax%2Fnaive-definitions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FallenMax","download_url":"https://codeload.github.com/FallenMax/naive-definitions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225617820,"owners_count":17497415,"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-11-20T19:27:43.032Z","updated_at":"2024-11-20T19:27:43.777Z","avatar_url":"https://github.com/FallenMax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Naive Definitions\n\n_Inspired by [Fuzzy Definitions](https://github.com/jrieken/fuzzy-definitions) and [Find All References](https://github.com/gayanhewa/vscode-find-all-references)_\n\nA Visual Studio Code extension that provides \"Go to Definition\" and \"Find All References\" functionality for various programming languages, using a fast textual search.\n\nThis extension is helpful when navigating large codebases, especially for weakly-typed languages or languages without good Language Server Protocol (LSP) support, where the built-in IntelliSense engine may fail to provide reliable definitions.\n\n## Features\n\n- Supports \"Go to Definition\" and \"Find All References\" for multiple programming languages\n- Configurable language-specific search patterns and file globs\n- Respects `.gitignore` and other ignore files\n- Blazing fast search using [ripgrep](https://github.com/BurntSushi/ripgrep)\n\n## Requirements\n\n- Install [ripgrep](https://github.com/BurntSushi/ripgrep) and make it available in your system's `$PATH` (run `rg` in the command line to verify)\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n- `naiveDefinitions.languageConfigs`: An array of language-specific configurations, each with the following properties:\n  - `languages`: An array of programming language IDs to enable the extension for.\n  - `definitionPatterns`: An array of regular expression patterns to use when searching for definitions. Use `%s` to represent the word at the cursor position. **Note: These patterns may require escaping special characters depending on your programming language.**\n  - `referencePatterns`: An array of regular expression patterns to use when searching for references. Use `%s` to represent the word at the cursor position. **Note: These patterns may require escaping special characters depending on your programming language.**\n  - `fileGlobs`: An array of file glob patterns to search within.\n\nExample configuration:\n\n```json\n{\n  \"naiveDefinitions.languageConfigs\": [\n    {\n      \"languages\": [\n        \"javascript\",\n        \"javascriptreact\",\n        \"typescript\",\n        \"typescriptreact\",\n        \"vue\"\n      ],\n      \"definitionPatterns\": [\n        \"(var|let|const)[^=]+\\\\b%s\\\\b\",\n        \"\\\\b%s\\\\b\\\\s=[^=]+\"\n      ],\n      \"referencePatterns\": [\"\\\\b%s\\\\b\"],\n      \"fileGlobs\": [\"**/*.js\", \"**/*.jsx\", \"**/*.ts\", \"**/*.tsx\", \"**/*.vue\"]\n    },\n    {\n      \"languages\": [\"python\"],\n      \"definitionPatterns\": [\"def\\\\s+%s\\\\s\\\\\", \"class\\\\s+%s\\\\s*\\\\(\"],\n      \"referencePatterns\": [\"\\\\b%s\\\\b\"],\n      \"fileGlobs\": [\"**/*.py\"]\n    }\n  ]\n}\n```\n\n## Release Notes\n\n### 0.1.0 - Added support for configuring language-specific search patterns and file globs\n\n- The extension is now activated on-demand when the user invokes the \"Go to Definition\" or \"Find All References\" commands, rather than on startup\n- Improved performance by only registering providers for the configured languages\n\n### 0.0.7 - Registered as a \"Find All References\" provider\n\n### 0.0.6 - Added Windows support\n\n### 0.0.5 - Added support for searching `.vue` files for definitions\n\n### 0.0.2 - Added support for searching `.ts` and `.tsx` files for definitions\n\n### 0.0.1 - Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenmax%2Fnaive-definitions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffallenmax%2Fnaive-definitions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffallenmax%2Fnaive-definitions/lists"}