[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: Is there a way to set variable via script?
From: Gasper Zejn <zejn () kiberpipa ! org>
Date: 2011-12-18 10:26:01
Message-ID: 201112181126.01675.zejn () kiberpipa ! org
[Download RAW message or body]
Dne Sunday 18 December 2011 ob 11:12:22 ste napisali:
> On Sunday, 18. December 2011, Gasper Zejn wrote:
> > Hi,
> >
> > Is there a way to set a variable in Kate via embedded JavaScript API?
>
> Currently, not. Can you give us a use case? We could add it for KDE 4.8:
> document.setVariable(key, value)
>
> This could then set the key/value internally in the document (but not as
> modeline in the kate: ...; part).
>
> Greetings,
> Dominik
First - if it can be set via a command line interface, why not in via script
too?
Second - I find current indentation settings lacking and need to switch
everytime I open differently indented file types. So I set out to port
DetectIndent vim plugin [1] to Kate and the only thing stopping me now is the
lack of ability to set variables via script.
While I could use kate modelines, I see no reason why I should add a line for
every editor people use when a simple script could perfectly solve most of my
problems.
Kind regards,
Gašper
[1] http://www.vim.org/scripts/script.php?script_id=1171
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic