Giter Site home page Giter Site logo

bignoid / sublimekodi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phil65/sublimekodi

0.0 2.0 0.0 12.75 MB

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

Home Page: http://forum.kodi.tv/showthread.php?tid=221682

License: GNU General Public License v3.0

JavaScript 2.22% CSS 0.03% Python 97.75%

sublimekodi's Introduction

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.

sublimekodi's People

Contributors

phil65 avatar jindaxia avatar ronie avatar bobcratchett avatar bignoid avatar gitter-badger avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.