Skip to content

Releases: yomybaby/atom-titanium

v0.14.0

17 Jun 22:41
Compare
Choose a tag to compare

This version include two behavior changes.

Open/close related files

Thanks @malhajj (#69)

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

Alloy controller and lib/*js autocompletion

Thanks @HazemKhaled (#57)
If you type with / prefix, it works property.
if you type without / prefix, / prefix will be added when autocompleting.

This work on xml file (<Require src='/my...)

screeshot.gif

Autocompletion for js file in the `lib` directory

26 Dec 01:04
Compare
Choose a tag to compare

Display deprecated or not

20 Nov 05:21
Compare
Choose a tag to compare

Alloy.CFG & module name completions

07 Nov 03:31
Compare
Choose a tag to compare

Customizing auto generation code

13 Jun 05:08
Compare
Choose a tag to compare

Now you can change template of auto generation via Hyperclick.
Thanks @DouglasHennrich

Worth noting is :

  • If you want to make new line, use \n in setting view
    settings_ __users_yomybaby_documents_tiworkspace_sandbox520ga
  • If you want to make new line, use \\n in config.json
    index_tss_ __users_yomybaby_documents_tiworkspace_sandbox520ga
  • ${text} is a text which you hipyerclicked.

Image Path Autocompletion

07 May 02:29
Compare
Choose a tag to compare

imagepath

Yes! It is.
Just type "/i" or '/i' and you can get image path autocompletion.

  • JS : anywhere
  • XML : only value
  • TSS : only style value
  • Limitation : Currently, this feature find a path from app/assets/images only. (not include android and ios platform specific folder)

I'm waiting for your any idea and PR.

more Auto completion for controller/model/widget name in JS

07 Mar 13:14
Compare
Choose a tag to compare

Autocompletion supports sub-folder

#26
ctrl_in_sub_folder

And there are more i18n features :

  • If there is no i18n/en/strings.xml, it will be generated automatically.
  • You can choose default language in package setting.

$.id.[property|function] completions

30 Jan 00:45
Compare
Choose a tag to compare

Generating Definition Automatically

25 Jan 04:54
Compare
Choose a tag to compare

Best one of improvements in this release is auto-generating definition.

screenshot_autocomplete

More Autocomplitions

  • On XML
    • src value of Require Tag
    • src value of Widget Tag
    • src property name of Require Tag
    • platform key and values(android,ios,...)
  • On TSS
    • font completion (refactoring)
  • On JS
    • property name
    • $.id completion

More hyperclicks

  • xml to tss hyperclick use definitions on app.tss and tss of controller
  • i18n string (go to i18n/en file)
  • if there isn't no definition, generate definition(style, i18n)

snippets

  'Ti: addEventListener function':
    'prefix': 'aelf'
    'body': 'addEventListener(\'${1:eventName}\', function (e) {\n\t$2\n});'
  'Ti: addEventListener':
    'prefix': 'ael'
    'body': 'addEventListener(\'${1:eventName}\', );'
  'Ti: removeEventListener function':
    'prefix': 'relf'
    'body': 'removeEventListener(\'${1:eventName}\', function (e) {\n\t$2\n});'
  'Ti: removeEventListener':
    'prefix': 'rel'
    'body': 'removeEventListener(\'${1:eventName}\', );'
  'on: event on function':
    'prefix': 'onf'
    'body': 'on(\'${1:eventName}\', function (e) {\n\t$2\n});'
  'off: event off function':
    'prefix': 'off'
    'body': 'off(\'${1:eventName}\', function (e) {\n\t$2\n});'
  'Alloy Globals':
    'prefix': 'AG.'
    'body': 'Alloy.Globals.'
  'Alloy Create Controller':
    'prefix': 'ACC'
    'body': 'Alloy.createController(\'${1}\')'
  'Alloy Create Model':
    'prefix': 'ACM'
    'body': 'Alloy.createModel(\'${1}\')'
  'Alloy Create Collection':
    'prefix': 'ACMC'
    'body': 'Alloy.createCollection(\'${1}\')'
  'Alloy Create Widget':
    'prefix': 'ACW'
    'body': 'Alloy.createWidget(\'${1}\')'

Other

  • sort completions by string length.
  • Add missing tags (Alloy, ActivityIndicator)

Change completion order and bug fix

11 Dec 16:02
Compare
Choose a tag to compare

2719d6c : make shorter completion has high priority

  • For example : now you can select backgroundColor completion by typing bgc only!

e4bbd69 : fix : string value completion doesn't work after change get values from type