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

Motion​Lookitup

Autocomplete plugin for RubyMotion and Sublime Text

Details

Installs

  • Total 56
  • Win 13
  • OS X 36
  • Linux 7
Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 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.