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

Motion​Lookitup

Autocomplete plugin for RubyMotion and Sublime Text

Details

Installs

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