summaryrefslogtreecommitdiffstats
authorLucas de Vries <lucas@glacicle.org>2010-06-10 11:50:13 (GMT)
committer Lucas de Vries <lucas@glacicle.org>2010-06-10 11:50:13 (GMT)
commit5ee39e2a24a99d0bcb5f2bc986ee4593769a3344 (patch) (side-by-side diff)
treed0746410f97d2e612db7fcd877193380b32f17bd
parentfde53698b6cdd95699363aa571981577d5139a54 (diff)
downloadvimperator-buftabs-master.tar.gz
update documentationHEADmaster
Signed-off-by: Lucas de Vries <lucas@glacicle.org>
-rw-r--r--buftabs.js66
1 files changed, 38 insertions, 28 deletions
diff --git a/buftabs.js b/buftabs.js
index 80de339..7e65388 100644
--- a/buftabs.js
+++ b/buftabs.js
@@ -1,30 +1,40 @@
-// PLUGIN_INFO {{{
-let PLUGIN_INFO =
-<VimperatorPlugin>
- <name>Buftabs</name>
- <description>Add buffer tabs to the statusline to save space.</description>
- <version>1.1</version>
- <author mail="lucas@glacicle.org" homepage="http://lucas.glacicle.org/">Lucas de Vries (GGLucas)</author>
- <license>WTFPL version 2 (http://sam.zoy.org/wtfpl/)</license>
- <minVersion>2.2</minVersion>
- <maxVersion>2.2</maxVersion>
- <detail><![CDATA[
-
- == Usage ==
- When the script is loaded it hijacks the statusline to display a list of tabs,
- you can use the "buftabs" option to toggle it on or off.
-
- == Styling ==
- Use the BufTab and BufTabSelected highlight groups to style the buftabs.
- Make sure you've called the "loadplugins" command before using the highlight
- groups in your vimperatorrc.
-
- == Length ==
- You can set the max length of a title before it is cut off with the
- buftabs_maxlength option. It is set to 25 by default.
-
- ]]></detail>
-</VimperatorPlugin>;
+// {{{ Information
+var INFO =
+<plugin name="buftabs" version="1.0"
+ href="http://git.glacicle.org/vimperator-buftabs/"
+ summary="Buftabs: show the tabbar in the statusline"
+ xmlns="http://vimperator.org/namespaces/liberator">
+ <author email="lucas@glacicle.org">Lucas de Vries</author>
+ <license href="http://sam.zoy.org/wtfpl/">WTFPL</license>
+ <p>
+ When the script is loaded it hijacks the statusline to display a list of tabs,
+ you can use the "buftabs" option to toggle it on or off.
+
+ Use the BufTab and BufTabSelected highlight groups to style the buftabs.
+ Make sure you've called the "loadplugins" command before using the highlight
+ groups in your vimperatorrc.
+
+ You can set the max length of a title before it is cut off with the
+ buftabs_maxlength option. It is set to 25 by default.
+ </p>
+ <item>
+ <tags>'buftabs'</tags>
+ <spec>'buftabs'</spec>
+ <type>boolean</type> <default>true</default>
+ <description>
+ Toggle the buftabs on or off.
+ </description>
+ </item>
+ <item>
+ <tags>'buftabs_maxlength'</tags>
+ <spec>'buftabs_maxlength'</spec>
+ <type>number</type> <default>25</default>
+ <description>
+ The maximum length in characters of a single entry in the buftabs line.
+ Set to 0 for unlimited.
+ </description>
+ </item>
+</plugin>;
// }}}
buftabs = {
@@ -113,7 +123,7 @@ buftabs = {
}
// Check length
- if (tabvalue.length > maxlength)
+ if (maxlength > 0 && tabvalue.length > maxlength)
tabvalue = tabvalue.substr(0, maxlength-3)+"...";
// Bookmark icon