{"id":13448137,"url":"https://github.com/hajnalben/ClickableRequires","last_synced_at":"2025-03-22T08:31:42.712Z","repository":{"id":95002436,"uuid":"86941591","full_name":"hajnalben/ClickableRequires","owner":"hajnalben","description":"Open the required javascript files with a mouseclick in SublimeText3","archived":false,"fork":false,"pushed_at":"2019-10-13T19:07:15.000Z","size":733,"stargazers_count":11,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-01T05:23:50.072Z","etag":null,"topics":["es6","import","javascript","require","typescript"],"latest_commit_sha":null,"homepage":"","language":"Python","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/hajnalben.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":"2017-04-01T20:41:38.000Z","updated_at":"2020-02-28T02:16:12.000Z","dependencies_parsed_at":"2023-06-11T13:30:29.450Z","dependency_job_id":null,"html_url":"https://github.com/hajnalben/ClickableRequires","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hajnalben%2FClickableRequires","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hajnalben%2FClickableRequires/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hajnalben%2FClickableRequires/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hajnalben%2FClickableRequires/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hajnalben","download_url":"https://codeload.github.com/hajnalben/ClickableRequires/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221826271,"owners_count":16887130,"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":["es6","import","javascript","require","typescript"],"created_at":"2024-07-31T05:01:36.737Z","updated_at":"2024-10-28T12:30:22.807Z","avatar_url":"https://github.com/hajnalben.png","language":"Python","readme":"# ClickableRequires for Sublime Text 3\n\n## Description\nOpen the required/imported javascript/typescript/coffeescript files with a mouseclick like in another IDEs.\n\n## Installation\n* clone the repository into Sublime Packages folder\n* or install through Package Control: `ClickableRequires`\n\n## Usage\nYou can hover on any `require('module-name')` or `import module from 'module'` statements to open a pop-up with in-app link to the file.\nFor core node modules the online documentation will be opened in the browser.\nIf the file is from node_modules then also an npm link to the package will be displayed.\n\n## Click settings\nYou can setup the plugin to navigate on mouseclick:\n * open the Pakages by Command Palette -\u003e Browse Packages\n * in /Packages/User/ folder create or edit the `Default.sublime-mousemap` file\n * add the following (here you can modify the button and the modifiers as you like but beware with binding collosions.):\n\n```json\n[\n  { \"button\": \"button1\", \"modifiers\": [\"super\"], \"command\": \"open_require_under_cursor\", \"press_command\": \"drag_select\" }\n]\n```\n\n![demo](./demo.gif)\n\n## Settings\n\nThe default settings are the following:\n\n```javascript\n{\n  \"debug\": false,                 // To turn on or off file searching debug logs\n  \"reveal_in_side_bar\": true,     // Will reveal the file in the sidebar\n  \"extensions\": [ \".js\", \".jsx\", \".ts\", \".tsx\", \".vue\", \".coffee\" ], // Allowed file extensions to search for import and require statements\n  \"resolve_extensions\": [ \".js\", \".jsx\", \".ts\", \".tsx\", \".vue\", \".node\", \".json\", \".coffee\" ], // The module finder will try to resolve to these extensions when searching without concrete extension\n  \"scope\": \"support.module\",      // See more at https://www.sublimetext.com/docs/3/scope_naming.html\n  \"icon\": \"dot\",                  // Possible values: dot, circle, bookmark and cross. Empty string for hidden icon.\n  \"underline\": true,              // If the module names should be underlined\n  \"show_popup_on_hover\": true,    // If a popup with module link and path should appear on hovering the require statement\n  \"auto_fold_imports\": false      // Fold lines with import when opening file\n}\n```\n\nHowever you can override them in `Preferences -\u003e Package Settings -\u003e ClickableRequires -\u003e Settings - User`.\n\n## Webpack or other module handlers\n\nIf you are using webpack `resolve.modules` or `resolve.aliases` then you should configure the routes to this modules in your `.sublime-project` file.\nUse relative paths to the project file!\n\n```json\n{\n  \"folders\":\n  [\n    {\n      \"path\": \".\"\n    }\n  ],\n  \"settings\":\n  {\n     \"webpack_resolve_modules\": [\"src\", \"other_module_directory\"],\n     \"webpack_resolve_extensions\": [\".js\", \".jsx\", \".json\"]\n  }\n}\n```","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhajnalben%2FClickableRequires","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhajnalben%2FClickableRequires","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhajnalben%2FClickableRequires/lists"}