ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Motion​Lookitup

Autocomplete plugin for RubyMotion and Sublime Text

Details

Installs

  • Total 60
  • Win 15
  • OS X 38
  • Linux 7
Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Look It Up

Autocomplete plugin for RubyMotion and Sublime Text

If you own a copy of RubyMotion you can generate all_the_things.json by running compile.py from the command line, otherwise you can download a copy of it here: http://media.colinta.com/all_the_things.json

This means you must install this plugin using git, and cd to that folder, pip install -r requirements.txt, and then run

python compile.py
# or copy the file
cp ~/Downloads/all_the_things.json .

That file is pretty huge, 4.5M, and needs to reside in memory. So if your computer only has 8MB of RAM, you're gonna have trouble running this plugin.

The first time you run the plugin it will take a little while to read this file, you should see a status message letting you know.

It's pretty intuitive from there, but check out Usage if you're feeling lost.

Your selection will be inserted using the insert_snippet command, so you can use tab to move around (argument names are selected).

Installation

  1. Open the Sublime Text 3 Packages folder
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
    • Linux: ~/.Sublime Text 3/Packages/
  2. clone this repo

    git clone git@github.com:colinta/MotionLookitup
    
  3. Install keymaps for the commands (see Example.sublime-keymap for my preferred keys)

Commands

motion_lookitup: Starts a “Lookitup” browsing and autocomplete session.

Usage

The first time you run motion_lookitup, you will be presented with an input panel to select your platform:

Platform

platform

Choosing a platform will also automatically choose a Framework to investigate. On iOS the default framework is UIKit, and on OS X it is AppKit. Now we are looking at a panel where you will choose what type of symbol:

Section

sections

If you need to change frameworks, choose the first option:

Frameworks

frameworks

Here's what the different sections look like:

Constants

constants

Classes

classes

Class Methods

class-methods

Protocols

protocols

Protocol Methods

protocol-methods

Filtering Protocols

choose-protocol

Functions

functions

Filtering Functions

choose-function

Todo

[ ] Use the current selection (or grab the word at the caret position) to filter the selection.