Releases: yomybaby/atom-titanium
Releases · yomybaby/atom-titanium
v0.14.0
This version include two behavior changes.
Open/close related files
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...
)
Autocompletion for js file in the `lib` directory
Display deprecated or not
related with #51
Alloy.CFG & module name completions
Customizing auto generation code
Now you can change template of auto generation via Hyperclick.
Thanks @DouglasHennrich
Worth noting is :
Image Path Autocompletion
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 includeandroid
andios
platform specific folder)
I'm waiting for your any idea and PR.
more Auto completion for controller/model/widget name in JS
Autocompletion supports 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
Generating Definition Automatically
Best one of improvements in this release is auto-generating definition.
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)