Kodi Community Forum
Sublime Text 2 - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
--- Thread: Sublime Text 2 (/showthread.php?tid=142617)

Pages: 1 2


Sublime Text 2 - Amelandbor - 2012-10-12

Anyone uses this one for coding? Just downloaded it and it works a lot better imo then notepad++.
Already started with a custom autocompletion file for xbmc, which works great.

Can be downloaded here:
https://github.com/Amelandbor/XML


RE: Sublime Text 2 - Amelandbor - 2012-10-13

I've posted my XML.sublime-completions file on http://pastebin.com/5fem4rqW .This one is located in C:\Users\$USER\AppData\Roaming\Sublime Text 2\Packages\XML

And this is in my User settings file.

Code:
{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "auto_complete_triggers": [ {"selector": "text.xml", "characters": "<"} ]
}

Autocompletion will open with typing a <.


RE: Sublime Text 2 - Hitcher - 2012-10-13

I've just had a quick play with it - it's nice and easy on the eyes - and I like the sound of the auto-complete feature but don't know yet if we can use it for XBMC style controls.


RE: Sublime Text 2 - Amelandbor - 2012-10-14

I've edited my post because the pastebin url was wrong.

What do you mean by:

(2012-10-13, 17:04)Hitcher Wrote: I like the sound of the auto-complete feature but don't know yet if we can use it for XBMC style controls.




RE: Sublime Text 2 - Hitcher - 2012-10-14

When typing <control you get a list of all the types for easy selection.

PHP Code:
<control type="label" id="1">
<
control type="image" id="1">
... 



RE: Sublime Text 2 - Hitcher - 2012-10-14

(2012-10-13, 12:32)Amelandbor Wrote: I've posted my XML.sublime-completions file on http://pastebin.com/5fem4rqW .This one is located in C:\Users\$USER\AppData\Roaming\Sublime Text 2\Packages\XML

What should this be saved as?


RE: Sublime Text 2 - Amelandbor - 2012-10-14

As XML.sublime-completions

And I haven't found a solution for control to get multiple selections, but it is possible.


RE: Sublime Text 2 - Hitcher - 2012-10-14

Cheers, auto-complete is great. Big Grin


RE: Sublime Text 2 - Amelandbor - 2012-10-14

I have a workaround for the control issue. You can type the first (or two) letter and it will autocomplete the word. I would like to see a dropdown list with all available tags but I think that would need some python coding.

Here is the new completions file:

https://gist.github.com/3888542



RE: Sublime Text 2 - phil65 - 2012-10-14

@ Hitcher: perhaps adding a link to this in your "Skinning for beginners" thread?
cheers


RE: Sublime Text 2 - Hitcher - 2012-10-14

Done.


RE: Sublime Text 2 - publicENEMY - 2012-10-16

autocompletion is very nice! rep+.

thanks.


RE: Sublime Text 2 - Amelandbor - 2012-10-16

I created a repo on github for the autocompletion file. Let me know which tags you want to have added to the list.


RE: Sublime Text 2 - Amelandbor - 2012-10-17

Updated at Github, added
Code:
"Container.Content(tvshows)", "Container.Content(seasons)",     "Container.Content(episodes)", "Container.Content(movies)"
The autocomplete list for these will only appear if you hit CTRL+Space.


RE: Sublime Text 2 - Hitcher - 2012-10-17

Thanks.


This forum uses Lukasz Tkacz MyBB addons.