Coder Social home page Coder Social logo

iq-scm / atom-titanium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yomybaby/atom-titanium

0.0 0.0 0.0 1.34 MB

[DEPRECATED] Atom package for Titanium Alloy

Home Page: https://atom.io/packages/titanium-alloy

License: MIT License

JavaScript 96.38% CoffeeScript 3.57% CSS 0.04%

atom-titanium's Introduction

[DEPRECATED] This package will not updated. I recommend Appcelerator official Package for developing titanium on Atom.

All-in-One package for Titanium Alloy

This is a Atom package for Titanium Alloy

$ apm install titanium-alloy

Conflict & Requires Notice

  • Alloy 1.8.x setting
  • Requires
    • Hyperclick package for Jump to definition
      (Now It will be installed automatically. After relaunch atom, Hyperclick works. Thanks @HazemKhaled #16)
  • Conflict
    • If you using other tss grammar package, such as language-tss. It makes this package doesn't work.

Features

Autocomplete

jump-to-definition

  • Titanium properties
    • such as 'Ti.UI.SIZE', true, 'black', Ti.UI.TEXT_ALIGNMENT_CENTER.
  • id and class name
    • based on current controller's tss and app.tss.
  • module name
    • all of controller/widget/model name on XML and JS
    • on XML : After <Require src=', you can see the suggestions.
    • on JS : After Alloy.create[Controller|Widget|Model], you can see the suggestions.
  • Image path
    • image path in app/assets/images directory.
    • When you type '/i', you can see the suggestions.
  • i18n
    • i18n key base on app/i18n/{language}/strings.xml
    • After L(', you can see the suggestions

Jump to definition

This feature is a hyperclick provider.

  • Jump to tss definition from xml [class|id|tag] name
  • Jump to event handler definition from xml onEventName property
  • Jump to i18n key definition from [js|tss] file.
  • If not exists, Generate a code based on template.
    • Now, you can change template on ~/.atom/config.cson. (#42 Thanks @ DouglasHennrich)

Hyperclick is triggered by two events:

  • <cmd> or <cmd-mousemove> underlines clickable text under the mouse.
  • <cmd-mousedown> performs the action associated with the clickable text.
  • <cmd-alt-enter> performs the action on the text under the cursor.

jump-to-definition

Key Bindings Command Desc
ctrl-alt-a Toggle(open or close) relative files. When close, current file is remained.
ctrl-alt-shift-a Close all relative files. Current file is closed also.
ctrl-alt-v Open view
ctrl-alt-s Open style
ctrl-alt-c Open controller

On package setting, there is an option to change layout of "Open All related files" command. (2 columns or 3columns)

TSS Sytax Highlight

refer to language-css and language-json, language-tss
tss-highlight
This hightlight use css color your current theme. So tss file looks like css file.

Snippet

See snippets/tialloy.cson

Reference

Release note

See github repo release page.

Contribution?

  • Any issue, sugestion, PR makes me happy.

Analytics

atom-titanium's People

Contributors

douglashennrich avatar hansemannn avatar haraldsvik avatar hazemkhaled avatar m1ga avatar yomybaby avatar yuchi avatar

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.