Kodi Community Forum

Full Version: KodiDevKit: SublimeText3 plugin to support kodi skinning / scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Nice plugin phil65, I just started using Sublime. Was using a combination of Notepad++, FileSeek, and Windows Explorer....ST3 has replaced all three.
(2015-03-20, 03:33)phil65 Wrote: [ -> ]
(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

It did it installed but then all I got was 'There are no packages to install'. Confused

Tried the latest build and can't even use it without a licence.
K, you guys got me. I switched. Too much useful plugins and I don't have to move my hand to the mouse anymore...

I'm only missing an XML validating plugin. For NPP there is "XML Tools" to show the error line, but I do not find a similar one for sublime.

Edit:
Got it. SublimeLinter + xmllint (https://packagecontrol.io/packages/Subli...er-xmllint)
Text Pastry is another one I've just installed for inserting number sequences with ease.
Hello ,first thing thanks for the add etc,second ,i factory reset my Ott 4xcpu box ,stuck now has what to do to get it all going againHuhSad
(2015-03-20, 13:53)Hitcher Wrote: [ -> ]Text Pastry is another one I've just installed for inserting number sequences with ease.

What the.., this is just awesome. Thx for the hint.

(2015-03-20, 14:01)stressed Wrote: [ -> ]Hello ,first thing thanks for the add etc,second ,i factory reset my Ott 4xcpu box ,stuck now has what to do to get it all going againHuhSad

You know that you are in the Kodi Skin Development board? Your question... is like asking for an car repair in a barber shop.
I updated my XML.sublime-completions if anyone wants to use it.

http://pastebin.com/TVEYuk2N
Thanks. Pasted it right into my user conf Tongue
Nice, did not know about custom autocomplete Smile

I only got this to work by adding
Code:
    "auto_complete_triggers":
    [
        {
            "characters": "<",
            "selector": "text.xml"
        }
    ],
in the user settings btw.
Sorry, forgot about that. I've added auto-completion for brackets to mine as well.

Code:
{
    "auto_complete_triggers":
    [
        {
            "characters": "<",
            "selector": "text.xml"
        },
        {
            "characters": "\\(",
            "selector": "text.xml"
        },
        {
            "characters": "[",
            "selector": "text.xml"
        }
    ],
    "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
    "font_size": 14,
    "highlight_modified_tabs": true,
    "hot_exit": false,
    "ignored_packages":
    [
        "Vintage"
    ],
    "remember_open_files": false
}
And another package I've found useful - Tabright. Wink
Anyone know if there's one that highlights the open and close tabs when selecting them like N++ does? SB only underlines them whereas N++ highlights them and the lines linking them changes as well.

Notepad++

Image

Sublime Text

Image
BracketHighlighter <--- Smile

It underlines the active bracket.

Image

Edit:
Damn u sublime. I spend more time for configuration as productivity. Everytime I'm going start ..I'll find more to tweak Tongue

If somebody else is annoyed that <tab> is used for "{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },", this will replace this stupid function:
Quote:{ "keys": ["tab"], "command": "insert", "args": {"characters": "\t"},
"context": [
{ "key": "text", "operator": "not_regex_contains", "operand": "\n" }
]
},

This also enables indenting of an selection instead of deleting it.
What does it change exactly?
Just close an tag and press "tab" right after it. Usualy sublime will replace the ">" with an "<name />" on the default settings.
This user keybinding will override that with an common tab indent and enables tab-indenting for a selection.

Does anyone else facing stability issues with 3079? It force close itself sometimes.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22