GithubHelp home page GithubHelp logo

subtlegradient / javascript-appcelerator-titanium-mobile.tmbundle Goto Github PK

View Code? Open in Web Editor NEW
103.0 3.0 9.0 1.41 MB

TextMate Bundle (tmBundle) for the Appcelerator Titanium Mobile JavaScript API. Includes complete API Code Completion and context sensitive API doc ToolTips. Yes, this is real.

Ruby 40.00% JavaScript 60.00%

javascript-appcelerator-titanium-mobile.tmbundle's Introduction

Appcelerator Titanium Mobile JavaScript TextMate Bundle

By Thomas Aylott

MIT License

How to install

  1. Install TextMate (um… duh?)
  2. Download JavaScript-Appcelerator-Titanium-Mobile.tmbundle.zip
  3. Unzip
  4. Rename the folder to ti-mo.tmbundle
    • The name of the folder doesn't really matter, just so long as it has the tmbundle extension
  5. Double-Click
  6. Install the JSON Ruby Gem
    • sudo gem install json
  7. Enjoy!

How to use

Complete! ⌥⎋ option-escape

The completion list contains all of the Titanium and Ti API.

Tooltips! ⌥F1

The tips are context sensitive. Place your caret anywhere inside of a function (on the same line) and it'll work, even inside the arguments ()!

Complete! Type Ti. (optional)

Enable this by selecting the "JavaScript Titanium Mobile" language in the bottom bar of TextMate.

As soon as you hit the . (after typing Ti) it'll bring up the as-you-type completion list thing.

Note: If you are at the last line and click "." then the code completion list won't appear. You must leave a blank line at the end of your document.

javascript-appcelerator-titanium-mobile.tmbundle's People

Contributors

subtlegradient avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

javascript-appcelerator-titanium-mobile.tmbundle's Issues

Ruby error in the tooltip instead of code completion when using 1.9.2

I accidentally closed the other "issue" and I think I can't reopen it, so here we come again...
This error seems to only happen when using Ruby 1.9
( My version is ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0] )

So I let TextMate use the older, preinstalled version of Ruby
( ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] )
And it works again.

But be prepared, as soon as Apple upgrades to 1.9, (I guess) it'll stop working :O

Autocomplete throws error in tooltip

Ruby Version: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.5.0]

  1. did a sudo gem install json
  2. downloaded zip file from github
  3. renamed unzipped folder to ti-mo.tmbundle
  4. double-clicked .tmbundle file
  5. restarted TextMate
  6. typed "Ti.", at which point I got a tooltip with the following:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load

  1. did a sudo gem update --system, which resulted in:

Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.7.2
Updating RubyGems to 1.7.2
Installing RubyGems 1.7.2
RubyGems 1.7.2 installed

  1. did a sudo gem install json again, just for good measure, which resulted in:

Building native extensions. This could take a while...
Successfully installed json-1.5.1
1 gem installed

  1. reloaded TextMate Bundles (rather than restarting).
  2. typed Ti. and got the same error message in the tooltip.

There's a few lines of stacktrace, which I can provide if needed.

Disclaimer: I'm not a Ruby developer, so not sure if there's something blatantly obvious that I did wrong with either the gem update or install :\

Textmate 2 install path

This bundle was not showing up in Textmate 2. After some research it seems that the bundle install path is actually directly in the app content package here ~/Applications/TextMate.app/Contents/SharedSupport/Bundles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.