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


KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting - phil65 - 2015-03-18

KodiDevKit

SublimeText plugin to help with Kodi Skinning and scripting

Image

Image

Image

Image

SublimeText 3 is available via PackageControl: https://packagecontrol.io/packages/KodiDevKit

Source:
https://github.com/phil65/kodidevkit

most up-to-date ReadMe + FeatureList:
https://github.com/phil65/kodidevkit/blob/master/README.md

Needs build 3092+ to work properly!
some JSON functions need newest script.toolbox installed.


RE: SublimeText3 plugin to translate kodi labels - sualfred - 2015-03-18

Everone is trying to move me from notepad++ to sublime.... but I'll resist Tongue
Thanks for sharing phil!


RE: SublimeText3 plugin to translate kodi labels - Sranshaft - 2015-03-18

Very cool Phil. Definitely going to try this out.

@Sualfred: I was in the same boat but after trying it out I instantly switched to Sublime Text.


RE: SublimeText3 plugin to translate kodi labels - sualfred - 2015-03-18

Is there a must have which I'm missing at np++? Tongue
Explorer plugin, intend and syntax tools, git integration, powerful search/replace tool, style configuration, customizable context menu. I mean.. I have everything and simply do not find a reason. Ok, this localize value plugin is a nice to have, but not really necessary for me.


RE: SublimeText3 plugin to translate kodi labels - phil65 - 2015-03-18

Snippets, Multi-cursor, fuzzy search for fast project and file switching, much faster for searching large projects, to name a few. Also completely customizable in every aspect.
Also Check out this tutorial to get started :
http://code.tutsplus.com/articles/perfect-workflow-in-sublime-text-free-course--net-27293


RE: SublimeText3 plugin to translate kodi labels - sualfred - 2015-03-18

+1 for the multi cursor feature. This is awesome.
Thx for the link, I will take a deeper look into it tomorrow when I'm in the office.


RE: SublimeText3 plugin to translate kodi labels - Karnagious - 2015-03-18

This is brilliant! Thank you!

And well done!


RE: SublimeText3 plugin to translate kodi labels - Hitcher - 2015-03-19

@Phil Care to share the plugins you use?

Thanks.


RE: SublimeText3 plugin to translate kodi labels - phil65 - 2015-03-19

(2015-03-19, 01:34)Hitcher Wrote: @Phil Care to share the plugins you use?

Thanks.

My ST installation here is mainly focused on Python development so probably not that helpful for you.
Apart from some obvious ones (Sidebar enhancements for example) I remember xmllint stuff being pretty important for skinning. BigNoid set up ST3 for skinning not too long ago so perhaps he can be more helpful in this aspect.
You can also browse a bit at https://packagecontrol.io/ to find stuff that suits your needs.


RE: SublimeText3 plugin to translate kodi labels - BigNoid - 2015-03-19

I have the following packages installed:
PHP Code:
    "installed_packages":
    [
        
"GitGutter",
        
"Hooks",
        
"Indent XML",
        
"Package Control"
    


In combination with this keymap:
PHP Code:
[
  
// Move cursor to end of tag with Enter (xml only)
  
"keys": ["enter"], "command""move""args": {"by""characters""forward"true}, "context":
    [
        { 
"key""following_text""operator""regex_contains""operand""^[>)'\"\\]]""match_all"true },
        { 
"key""auto_complete_visible""operator""equal""operand"false },
        { 
"key""selector""operator""equal""operand""text.xml" }
    ]   
  },
  
// Replace = with ="" and move cursor (xml only)
  
"keys": ["="], "command""insert_snippet""args": {"contents""=\"$0\""}, "context":
    [
      { 
"key""selector""operator""equal""operand""text.xml" }
    ]   
  },
  
// Create tag when < is typed (xml only)
  
"keys": ["<"], "command""insert_snippet""args": { "name""Packages/XML/long-tag.sublime-snippet" }, "context":
    [
      { 
"key""selector""operator""equal""operand""text.xml" }
    ]   
  },
  
// Reindent
"keys": ["ctrl+alt+r"], "command""reindent" },




RE: SublimeText3 plugin to translate kodi labels - Hitcher - 2015-03-19

Thanks guys, I'm almost converted but how do I use your keymap exactly?


RE: SublimeText3 plugin to translate kodi labels - BigNoid - 2015-03-19

Preferences-->Key Bindings - User

Paste the code in that screen.

Re-indent is used in combination with the Indent XML package, select text and press ctlr+alt+r to indent.


RE: SublimeText3 plugin to translate kodi labels - sualfred - 2015-03-20

Soo.... played a while with Sublime. Realy powerful but I guess I'll stick at np++ for now. Simpy too used to it Tongue

Image


RE: SublimeText3 plugin to translate kodi labels - Hitcher - 2015-03-20

I'm converted with the auto-complete and multi-cursor functions. Just couldn't use v3 though as the packet manager had all sorts of problem.


RE: SublimeText3 plugin to translate kodi labels - phil65 - 2015-03-20

(2015-03-20, 01:30)Hitcher Wrote: I'm converted with the auto-complete and multi-cursor functions. Just couldn't use v3 though as the packet manager had all sorts of problem.

install this way:
https://packagecontrol.io/installation
and make sure it is not listed under Preferences --> Settings - User --> ignored packages.
newest version here: http://www.sublimetext.com/3dev