ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Kodi​Dev​Kit

by phil65 ST3

ST3 plugin to help with Kodi skinning / scripting (IDE-like)

Details

Installs

  • Total 743
  • Win 465
  • Mac 102
  • Linux 176
Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

KodiDevKit

License

ST3 plugin to show translated Kodi labels in mouseover popup, quickly open the Kodi log, log syntax highlighting and much more.

Requirements

In order to get everything working you need to manage your Kodi add-ons as a project while havin the add-on root as the only project folder. To allow JSON-RPC interaction with Kodi you also need to install script toolbox ( https://github.com/phil65/script.toolbox ) as well as activating JSON control via Kodi settings. Also, don´t forget to set up your KodiDevKit settings!

Feature list:

Kodi Log:
  • Open log from command palette
  • Jump to code where exception ocurred by pressing shift+enter when line with path is selected
Syntax Highlighting:
  • Added custom syntax highlighting for
    • Kodi language files
    • Kodi SkinXML files
    • Kodi log files
Tooltips:
  • Show english translation when label id is selected
  • Show additional translation of choice when label id is selected
  • Show actual color / color hex / alpha % for all color themes when color is selected
  • Show variable content
  • Show include content
  • Show font tag
  • Show constant value
  • Show value of selected Kodi InfoLabel in tooltip (by using JSON-RPC)
  • Show infos for selected image (image dimensions and file size)
  • Show window file name
JSON-RPC: (newest script.toolbox version needed)
  • Auto-reload skin after saving xml
  • Execute builtins from command palette
  • Reload skin
  • Display Kodi InfoLabel
Shortcuts:
  • Auto-completion for common Kodi snippets
    • builtins
    • boolean conditions
    • window names
    • include names
    • variable names
    • font names
    • constant names
Shortcuts:
  • Jump to include (shift+enter)
  • Jump to variable (shift+enter)
  • Jump to constant (shift+enter)
  • Jump to font (shift+enter)
  • Jump to label definition (shift+enter)
  • Jump to color definition (shift+enter)
  • Preview skin image (ctrl+enter)
  • Switch xml folder (ctrl+shift+enter)
  • Replicate code fragments (and insert asc. number starting with [offset]) (ctrl+shift+x)
Fuzzy searches:
  • Search through all skin labels
  • Search through all textures including preview
  • Search through all available fonts
  • Search through all translated strings ($LOCALIZE[id]) of currently open file
  • Search through all boolean conditions
  • Search through all builtins
Sanity checks:
  • Check for unused includes / invalid include references
  • Check for unused variables / invalid variable references
  • Check for unused fonts / invalid include font references
  • Check for unused labels / invalid label references
  • Check for invalid values / structure:
    • invalid nodes
    • invalid attributes
    • invalid attribute values
    • invalid node values
    • invalid multiple nodes
    • check for correct parantheses
    • check “empty” action calls
Context menu:
  • Move label to language file (creates entry in strings.po using the first free id and replaces selected text with $LOCALIZE[foo])
  • Go to Kodi online wiki (opens corresponding online help page, only for control types atm)
  • Preview skin image
Misc:
  • Auto-check skin file on saving
  • SkinCheck can also be used from command line with “python script.py PATH_TO_ADDON”
    • requires Python 3.3 interpreter
  • Build skin with texturepacker from command palette
  • Jump-to-Addon command
Remote Actions
  • Quick access to common ADB commands:
    • set remote IP
    • connect to remote
    • push add-on to remote
    • pull log from remote
    • clear temp folder on remote
    • pull screenshot from remote
    • reboot remote

Note: Sublime Text 2 is not supported. Also, KodiDevKit takes advantage of certain features of ST3 that have bugs in earlier ST3 releases or were implemented during betas. For the best experience, use the latest ST3 dev build. Minimum required version is build 3084.

Available on PackageControl: https://packagecontrol.io/packages/KodiDevKit