{"id":13448366,"url":"https://github.com/ternjs/tern_for_sublime","last_synced_at":"2025-12-16T14:52:30.201Z","repository":{"id":8249496,"uuid":"9695954","full_name":"ternjs/tern_for_sublime","owner":"ternjs","description":"Sublime Text package adding Tern support","archived":false,"fork":false,"pushed_at":"2022-11-07T07:05:22.000Z","size":99,"stargazers_count":800,"open_issues_count":43,"forks_count":52,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-23T23:07:51.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ternjs.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}},"created_at":"2013-04-26T13:34:00.000Z","updated_at":"2025-03-04T11:06:04.000Z","dependencies_parsed_at":"2022-08-06T23:15:42.952Z","dependency_job_id":null,"html_url":"https://github.com/ternjs/tern_for_sublime","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ternjs/tern_for_sublime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternjs%2Ftern_for_sublime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternjs%2Ftern_for_sublime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternjs%2Ftern_for_sublime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternjs%2Ftern_for_sublime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ternjs","download_url":"https://codeload.github.com/ternjs/tern_for_sublime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternjs%2Ftern_for_sublime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27766573,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-31T05:01:43.429Z","updated_at":"2025-12-16T14:52:30.173Z","avatar_url":"https://github.com/ternjs.png","language":"Python","readme":"# Tern for Sublime Text\n\nThis is a [Sublime Text][st] (version 2 and 3) package that provides\n[Tern][tern]-based JavaScript editing support.\n\n[st]: http://www.sublimetext.com/\n[tern]: http://ternjs.net\n\n**NOTE**: This project is not being actively maintained right now. If\nyou'd be interested in becoming a maintainer, write me or open an\nissue.\n\nIn JavaScript files, the package will handle autocompletion.\n\nThe following keys will be bound (in JavaScript files):\n\n`alt+.`  \nJump to the definition of the thing that the cursor is pointing at. If\nthere is no known code location, but it has a documentation URL\nassociated with, this will open the documentation in your browser\ninstead.\n\n`alt+,`  \nJump back to where you were when executing the previous `alt+.` command.\n\n`alt+space`  \nWhen on a variable, select all references to that variable in the\ncurrent file.\n\n`alt+o`  \nShow quick documentation for the thing that the cursor is pointing at. Documentation includes the type, a description (if available), and documentation url (if available).\n\n## Installation\n\nCheck out the code in this repository into a subdirectory of your\nSublime Text's `Packages` directory.\n\n    cd /path/to/sublime-text-N/Packages\n    git clone https://github.com/ternjs/tern_for_sublime.git\n\nNext, make sure [node.js][node] and [npm][npm] are installed (Tern is\na JavaScript program), and install the depedencies of the package.\n\n[node]: http://nodejs.org\n[npm]: https://npmjs.org/\n\n    cd tern_for_sublime\n    npm install\n\nOn OS X, you might also need to install the [Fix Mac\nPath](https://github.com/int3h/SublimeFixMacPath) Sublime plugin to\nhelp ST actually find your node binary.\n\nYou should be all set now.\n\n## Configuration\n\nThe plugin will load its settings from `Tern.sublime-settings` (found in Preferences \u003e Package Settings \u003e Tern),\nand recognized the following settings:\n\n`tern_argument_hints` (boolean, defaults to false)  \nWhether to show argument hints (May impact responsiveness on slow machines or big projects).\n\n`tern_output_style` (status, panel, tooltip, defaults to tooltip when available, otherwise status)  \n__status__ - When status is enabled, the status bar be used to display argument hints for the function call that the cursor is inside, and documentation. Unfortunately, the status bar is tiny and Sublime Text 2 provides no saner way to show these hints.  \n__panel__ - When panel is enabled, a new panel window opens to show arguments and documentation.  \n__tooltip__ - (only available on SublimeText build 3070+) When tooltip is enabled, a tooltip below the cursor is used.\n\n`tern_argument_completion` (boolean, default to false)  \nAuto complete function arguments (similar to eclipse).  \ne.g. `document.addEv` will show completion for `addEventListener (fn/2)` which completes to\n`document.addEventListener(type, listener)`. The first argument will be selected.\nUse `tab` to select the next argument.\n\nCompletions for smaller number arguments are supported.  \ne.g. in the extreme case, `THREE.SphereGeometry` has 7 arguments, most of which are optional. `THREE.SphG`\nwill show completions for `SphereGeometry (fn/7)`, `SphereGeometry (fn/6)`, ... , `SphereGeometry (fn/0)`.\nTyping 3 (i.e. `THREE.SphG3`) will select the completion `THREE.SphereGeometry (fn/3)` which completes to `THREE.SphereGeometry(a, b, c)`.\n\n\n`tern_command` (list of strings) The command to execute to start a\nTern server. The default is\n`[\"node\", \"/path/to/Packages/tern_for_sublime/node_modules/tern/bin/tern\"]`.\nIf your node installation lives somewhere that's not in the default\npath, or your Tern checkout is not where the module expects it to be,\nyou'll want to manually set this option.\n\n`tern_arguments` (list of strings) An extra set of arguments to pass\nto the Tern server. For example `--no-port-file` to suppress the\ncreation of `.tern-port` files.\n\nTern uses `.tern-project` files to configure loading libraries and\nplugins for a project. See the [Tern docs][docs] for details.\n\n[docs]: http://ternjs.net/doc/manual.html#configuration\n\n`tern_inhibit_word_completions` (boolean, default to false)\nIf true, Prevents Sublime Text from adding its word completions to the completion list after all plugins have been processed. This consists of any word in the current document that is longer than 3 characters.\n\n### Automatically Showing Completions\n\nAdd `{\"selector\": \"source.js\", \"characters\": \".\"}` to your\n`auto_complete_triggers` array in the Sublime Text preferences (found in Sublime Text \u003e Preferences \u003e Settings - User) to\nautomatically show completions after a dot is typed following an\nobject name. \n\nExample:\n```javascript\n\"auto_complete_triggers\": [ {\"selector\": \"text.html\", \"characters\": \"\u003c\"}, {\"selector\": \"source.js\", \"characters\": \".\"} ]\n```\n\nIf you don't have already an item named `auto_complete_triggers`, just add it after the last one (after adding a comma) like so:\n\n![](http://i.imgur.com/pptihb7.png)\n\nEnsure that your `auto_complete` preference is set to `true`. It's enabled by default.\n","funding_links":[],"categories":["Python","Extensions"],"sub_categories":["JavaScript Profile"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternjs%2Ftern_for_sublime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fternjs%2Ftern_for_sublime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternjs%2Ftern_for_sublime/lists"}