{"id":13772383,"url":"https://github.com/Slava/tern-meteor-sublime","last_synced_at":"2025-05-11T04:31:29.724Z","repository":{"id":28683682,"uuid":"32203587","full_name":"Slava/tern-meteor-sublime","owner":"Slava","description":"Meteor Framework autocompletion for Sublime","archived":false,"fork":false,"pushed_at":"2016-03-29T10:38:48.000Z","size":12390,"stargazers_count":247,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-10T13:58:07.029Z","etag":null,"topics":[],"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/Slava.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}},"created_at":"2015-03-14T09:06:55.000Z","updated_at":"2024-02-14T07:06:08.000Z","dependencies_parsed_at":"2022-08-02T12:12:31.571Z","dependency_job_id":null,"html_url":"https://github.com/Slava/tern-meteor-sublime","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slava%2Ftern-meteor-sublime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slava%2Ftern-meteor-sublime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slava%2Ftern-meteor-sublime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slava%2Ftern-meteor-sublime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Slava","download_url":"https://codeload.github.com/Slava/tern-meteor-sublime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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-03T17:01:03.313Z","updated_at":"2025-05-11T04:31:24.695Z","avatar_url":"https://github.com/Slava.png","language":"Python","funding_links":[],"categories":["\u003e 100 ⭐️"],"sub_categories":[],"readme":"# Tern.js Meteor for Sublime Text 3\n\n![demo.gif](/img/demo.gif)\n\nThis is a repository with a package for the Sublime Text 3 editor. By running a\ncustomized version of Tern.js, this package provides an autocompletion option\nfor developing Meteor applications in JavaScript.\n\nInterested in this for a different editor? Check out [this project](https://github.com/slava/tern-meteor).\n\nThis package is a fork of the [original `tern_for_sublime`\npackage](https://github.com/marijnh/tern_for_sublime). You can find the original\nREADME in this repository as [Original_README.md](./Original_README.md).\n\n## Installation\n\nThere are two parts to the installation. First, let your Sublime Text 3 know to\nautocomplete words on the dot character (`.`):\n\n1. Open Sublime Text 3\n2. Open \"Preferences\", \"Settings - User\"\n3. Add a line to your JSON (inside the main object):\n\t`, \"auto_complete_triggers\": [ { \"characters\": \"\u003c\", \"selector\": \"text.html\" }, { \"characters\": \".\", \"selector\": \"source.js\" } ]`\n\nThe second part is to install the package itself. The automatic way is to\ninstall it from the Package Control.\n\n1. Install the Package Control from \u003chttps://packagecontrol.io/\u003e\n2. Install this package by running \"Cmd/Ctrl + Shift + P\" -\u003e \"Install Package\" -\u003e \"Meteor Autocomplete (TernJS)\"\n\nThe manual way is to clone this repo in your Sublime Text 3 editor's \"Packages\"\nfolder. See [this handy page by\nfloobits](https://floobits.com/help/plugins/sublime) to learn more.\n\nRestart your Sublime Text 3 editor.\n\n## Usage\n\n### Autocompletion\n\nThis package searches your source tree for the folder called \".meteor\" or a \"package.js\" file. \nOnce it is found, the package considers its parent to be the root of your Meteor\nproject or package.\n\nIn addition to the default Meteor symbols generated out of the documentation,\nyou get the autocompetion between files and packages. This package is not smart\nenough to understand the packages dependencies, but it can distinguish local\nfiles scope as well as the global scope.\n\n### Jump to definition\n\nPut your cursor on a symbol and press the `alt+.` combination to jump to the\nsymbol definition. You can jump back to where you started by pressing the\n`alt+,` combination.\n\nAlternatively, you can select the \"TernJS: Jump To Definition\" item from the\ncommand palette.\n\n### Look up type of selection\n\n![show type](/img/demo2.gif)\n\nPut your blinking cursor on a symbol or select an expression and run \"TernJS:\nShow Type For Selection\" from the command palette.\n\n### Look up documentation of selection\n\nSimilarly, you can get an API documentation excerpt and a link to the docs if\nyou run \"TernJS: Show Documentation For Selection\" from the command palette.\n\nBy default, this plugin provides docs for Meteor APIs, as well as APIs for\nnode.js, jQuery, and browser/ES5,6 features.\n\n### Jump to the Template declaration file\n\nYou can find the `.html` Template file just by looking at its JavaScript\nreference. You can call the same \"TernJS: Jump To Definition\" command or press\n`alt+.`.\n\n![jump to template](/img/demo3.gif)\n\n### Using Meteor Packages from Atmosphere\n\nThis plugin will find and analyze all 3rd party packages your app uses if you\nrun your app with the `meteor` command at least once. Every time you update your\nused packages, you would need to trigger the re-reading of the\n`.meteor/versions` file (either by restarting the Tern server or restarting\nSublime or editing and saving the versions file).\n\n![use Atmosphere packages](/img/demo4.gif)\n\n## Using Meteor with Sublime? Here is more!\n\nHere is a list of recommended Sublime Text packages by other authors you might want to install.\n\n- Gitignored File Excluder - ignores lots and lots of build files from your search queries\n\n\n## Background\n\n- https://www.youtube.com/watch?v=OxzdNZCxPjk\n- https://www.youtube.com/watch?v=CcPZ56t8x4I\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlava%2Ftern-meteor-sublime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSlava%2Ftern-meteor-sublime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSlava%2Ftern-meteor-sublime/lists"}