Kate Variable Editor
Dominik Haumann
dhdev at gmx.de
Thu Jul 14 22:11:48 CEST 2011
Hi folks,
Kate gained a new feature this week: a so called document variable editor. Maybe it's woth to mention in the commit digest.
Cheers,
Dominik
As you may know, Kate supports the concept of document variables, also known as modelines [1]. In short, document variables can be used to set Kate settings local to a
file. For instance, this is useful for settings specific indenter options than the ones defined in Kate's settings dialog. Assume you work on two projects, the first
indents with spaces and the second with tabs, then you can simply add a modeline that contains the specific document variables that set the specific indentation
properties.
While the concept is very mighty, it is not intuitive to use: You have to know the exact syntax and correct varialbes and their valid values.
To improve this for the next KDE release (v4.8?), Kate gained a variable / modeline editor this week [2]:
<IMAGE>
If you click the "Edit" button, a list view pops up showing all valid document varialbes with the valid values. Right now, this editor is included only in the "Modes &
Filetypes" config page. However, the idea is to support it in the context menu over a Kate modeline in the text editor area as well.
[1] http://kate-editor.org/2006/02/09/kate-modelines/
[2] git commit: https://projects.kde.org/projects/kde/kdebase/kate/repository/revisions/b3eb57233bd3504415167669e02c75c92841a98b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modelineeditor.png
Type: image/png
Size: 118857 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/digest/attachments/20110714/1dc562d5/attachment-0001.png
More information about the Digest
mailing list