Kodi Community Forum
Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - 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)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Release KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting (/showthread.php?tid=221682)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - bambi73 - 2015-05-09

What features will be missing/not working if I use latest stable build (3083)? I don't have license so I can't use dev builds.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-09

(2015-05-09, 13:17)bambi73 Wrote: What features will be missing/not working if I use latest stable build (3083)? I don't have license so I can't use dev builds.

I think only the features concerning kodi log should be affected (syntax highlighting, jump-to-source for exceptions)


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - bambi73 - 2015-05-09

I want to try skinning related functions, so these are fine for me.
Thanks phil.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-09

No problem. If you like the software then please consider buying it.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - bambi73 - 2015-05-09

I regularly buy software what I use (or use free replacement) and wanted to do same with ST3 .... until I checked price. 70$ is ridiculously high for slightly better text editor. I guess it's fine when you are using it as your main development environment and/or for business, but for writing notes and occasional skinning at home it's too high.
I'm now testing ST3 for few weeks and though multicursor is quite nice feature I didn't find anything else groundbreaking. Maybe I'll reconsider in future, but currently performance/price ratio is quite low for me to buy it. Or maybe I'll return to Notepad++.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-09

no worries, and no need to explain yourself. Wink just a friendly reminder in case you use that software a lot.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-11

Some new features and lot of under-the-hood changes:

features:
- porting of skin sanity checks now almost complete. Also improved some of them. Try out "Check includes", "Check variables" and "Check invalid values" from command palette, all skins I tried had errors which want to get fixed. Wink
- "Display InfoLabels" in command palette (gets value for InfoLabel via JSON-PRC)
- Auto-Check skin when saving. (optional, default is True)
- New tooltip for color tags
- more stuff I probably forgot

under-the-hood:
- correctly detect include references with parameters (new in Isengard)
- correctly detect all file includes by recursively parsing Includes.xml
- full support for skins with several xml folders
- full support for color themes
- some more refactoring


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - mikebzh44 - 2015-05-13

Look very interesting.

For now, I'm using Notepad++ but I will try it.

So I download latest ST3 build (3083), get Indent XML and SublimeKodi from GITHUB, put plugin in Data\Packages sub-directory

I have edit SublimeKodi Settings - Defaults to enable portable mode :

Code:
"kodi_path": "C:\Kodi-14.0\",

"portable_mode": true,

Don't know if I need to set kodi_path to C:\Kodi-14.0\ or C:\Kodi-14.0\portable_data\ (I have try both but I didn't get any kodi command from command palette).

I have edit Preferences / Key bindings - User to add your shortcuts you given in post #1

But I don't have any kodi command :

Image

Or tooltype over string ID :

Image

If you can help me to understand and to set up ST3, it would be great Wink


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-13

you need to open the complete addon folder (and save it as a project)
first: File --> Open Folder --> select your addon folder
then: Project --> save project as..

"kodi_path" should point to the Kodi root folder, not the portable_data folder.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - mikebzh44 - 2015-05-13

Done.

Open C:\Kodi-14.0\portable_data\addons folder, save as project but nothing change Sad

No "Check ..." command, no string from IDs, ...

Do I need to have Kodi running in background (because of JSON-RPC interaction) ?


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-13

seems as if the whole plugin is not loaded then.
where did you put the add-on exactly?
path should be C:\Users\xxx\AppData\Roaming\Sublime Text 3\Packages\SublimeKodi for non-portable ST3.
Complete console output would be useful, too.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-13

...and no, you donĀ“t need Kodi running.
Also, open C:\Kodi-14.0\portable_data\addons\your_addon instead of C:\Kodi-14.0\portable_data\addons\


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - mikebzh44 - 2015-05-13

So for editing your skin (as an exemple), I just have to open aeon nox folder and save it as project.

I'm running ST3 in portable mode on my laptop @ my office. I will install it on my laptop @ home.


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - phil65 - 2015-05-13

(2015-05-13, 20:28)mikebzh44 Wrote: So for editing your skin (as an exemple), I just have to open aeon nox folder and save it as project.
correct. if you do not see anything in command palette the problem is something else though. you should at least see "Set Kodi Folder".


RE: SublimeKodi: SublimeText3 plugin to help with kodi skinning / scripting - mikebzh44 - 2015-05-13

I think it's OK now, I have SublimeKodi commands, label in tooltip, ...

Thanks.