• Stars
    star
    244
  • Rank 165,885 (Top 4 %)
  • Language
    Python
  • Created over 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Meteor Framework autocompletion for Sublime

Tern.js Meteor for Sublime Text 3

demo.gif

This is a repository with a package for the Sublime Text 3 editor. By running a customized version of Tern.js, this package provides an autocompletion option for developing Meteor applications in JavaScript.

Interested in this for a different editor? Check out this project.

This package is a fork of the original tern_for_sublime package. You can find the original README in this repository as Original_README.md.

Installation

There are two parts to the installation. First, let your Sublime Text 3 know to autocomplete words on the dot character (.):

  1. Open Sublime Text 3
  2. Open "Preferences", "Settings - User"
  3. Add a line to your JSON (inside the main object): , "auto_complete_triggers": [ { "characters": "<", "selector": "text.html" }, { "characters": ".", "selector": "source.js" } ]

The second part is to install the package itself. The automatic way is to install it from the Package Control.

  1. Install the Package Control from https://packagecontrol.io/
  2. Install this package by running "Cmd/Ctrl + Shift + P" -> "Install Package" -> "Meteor Autocomplete (TernJS)"

The manual way is to clone this repo in your Sublime Text 3 editor's "Packages" folder. See this handy page by floobits to learn more.

Restart your Sublime Text 3 editor.

Usage

Autocompletion

This package searches your source tree for the folder called ".meteor" or a "package.js" file. Once it is found, the package considers its parent to be the root of your Meteor project or package.

In addition to the default Meteor symbols generated out of the documentation, you get the autocompetion between files and packages. This package is not smart enough to understand the packages dependencies, but it can distinguish local files scope as well as the global scope.

Jump to definition

Put your cursor on a symbol and press the alt+. combination to jump to the symbol definition. You can jump back to where you started by pressing the alt+, combination.

Alternatively, you can select the "TernJS: Jump To Definition" item from the command palette.

Look up type of selection

show type

Put your blinking cursor on a symbol or select an expression and run "TernJS: Show Type For Selection" from the command palette.

Look up documentation of selection

Similarly, you can get an API documentation excerpt and a link to the docs if you run "TernJS: Show Documentation For Selection" from the command palette.

By default, this plugin provides docs for Meteor APIs, as well as APIs for node.js, jQuery, and browser/ES5,6 features.

Jump to the Template declaration file

You can find the .html Template file just by looking at its JavaScript reference. You can call the same "TernJS: Jump To Definition" command or press alt+..

jump to template

Using Meteor Packages from Atmosphere

This plugin will find and analyze all 3rd party packages your app uses if you run your app with the meteor command at least once. Every time you update your used packages, you would need to trigger the re-reading of the .meteor/versions file (either by restarting the Tern server or restarting Sublime or editing and saving the versions file).

use Atmosphere packages

Using Meteor with Sublime? Here is more!

Here is a list of recommended Sublime Text packages by other authors you might want to install.

  • Gitignored File Excluder - ignores lots and lots of build files from your search queries

Background

More Repositories

1

label-tool

Web application for image labeling and segmentation
JavaScript
350
star
2

meteor-rethinkdb

RethinkDB integration for Meteor
JavaScript
302
star
3

tern-meteor

Autocompletion plugin for Meteor 1.0 (extending TernJS)
JavaScript
283
star
4

vimrc

Meteor/Web development centric vim config
Vim Script
83
star
5

meteor-gmail

Real-time driver for GMail.
JavaScript
55
star
6

6.033-systems-engineering

notes from 6.033: watching lectures on OCW, doing assignments, reading papers, etc
44
star
7

diff.js

diff algorithm implemented in JavaScript
JavaScript
39
star
8

meteor-rethinkdb-demo

an example app
JavaScript
16
star
9

blaze-tools

lol wut
JavaScript
15
star
10

talk-player

JavaScript
13
star
11

typescript-types-script

for the lolz compiler to perform arbitrary computation in TS type system
Haskell
11
star
12

d3-meteor-basic

an example
JavaScript
11
star
13

meteor-gmail-query-parser

GMail query syntax parser
JavaScript
11
star
14

zbt-website

The new website for MIT ZBT
JavaScript
9
star
15

competitiveProgramming

Sources I generated over 4 years of competitive programming 2008-2012
C++
8
star
16

.spacemacs

My spacemacs file
Emacs Lisp
7
star
17

meteor-tracker-profiler

JavaScript
6
star
18

zbt-genealogy

JavaScript
6
star
19

meteor-mobile-icons-example

This example shows how to use icons and images with the new Meteor Mobile support
JavaScript
6
star
20

VKImage

Custom drawings for NSImage
Objective-C
4
star
21

emacs.d

Outdated, please refer to my spacemacs config
Emacs Lisp
4
star
22

reactive-array

Tracker-aware array implementation (WIP)
JavaScript
4
star
23

sqrt-skip-list-js

Doubly-linked list with insert/remove/random access/search optimization. NOT Skip List.
JavaScript
3
star
24

url-shortener

Url shortener for private use in small groups (teaching a class, etc).
JavaScript
3
star
25

meteor-ddp-analyzer

JavaScript
3
star
26

netflix-ko-vocab

A Chrome Extension that extends Netflix For Language Learners, showing better translations (and roots) for Korean subs
JavaScript
3
star
27

terminal-blog

Experimental meteor app
CSS
2
star
28

klyrics

Klyrics - KPop music player with lyrics
JavaScript
2
star
29

peliblog

Blog with Pelican
HTML
2
star
30

meteor-mongo-append-only

JavaScript
1
star
31

meteor-dashed-template-bug-repruduction

1
star
32

meteor-svg-barchart-example

JavaScript
1
star
33

topcoder

All my topcoder accepted solutions.
C++
1
star
34

malloc

One of the projects for the performance eng class, custom malloc with predictive bucket sizing, includes a visualizer in HTML/JS. We got an A for the class.
Python
1
star
35

pennapps-demo

Little application live-coded in 30 mins talk with introduction to Meteor.
CSS
1
star
36

slava.github.io

Future landing page
HTML
1
star
37

minilisp

For learning purposes. Don't laugh at me, I am learning!
C
1
star
38

org-asana

meh
JavaScript
1
star
39

desktop-email-server

JavaScript
1
star