1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-05-11 00:42:59 +02:00

33 Commits

Author SHA1 Message Date
Jan Larres 7ad4daee8d New screenshots 2014-10-01 20:53:25 +13:00
Jan Larres 48c9e617f7 Remove old screenshots 2014-10-01 12:46:53 +13:00
Jan Larres 4729c6df95 Sync website with README 2014-10-01 12:38:42 +13:00
Jan Larres c2f468e098 Replace some http links with https 2014-05-29 00:24:42 +12:00
Jan Larres 2f302c76ef Version 2.6.1 2014-01-23 23:17:00 +13:00
Jan Larres 97931679d1 Version 2.6 2013-12-06 00:27:08 +13:00
Jan Larres bfd85d28a1 Mention documentation a bit more clearly 2013-07-30 20:29:38 +12:00
Jan Larres 15871d11d1 Tweak development version description 2013-03-25 22:49:03 +13:00
Jan Larres 9c60ab2501 Version 2.5 2013-03-25 22:27:12 +13:00
Jan Larres cd1d23edce Version 2.4.1 2012-07-16 21:38:21 +12:00
Jan Larres a6b6e2d406 Version 2.4 2012-06-17 21:19:43 +12:00
Jan Larres 2144f8cdf3 Update links 2012-04-12 19:54:46 +12:00
Jan Larres 3a9895eb04 Improve website 2012-04-06 20:13:06 +12:00
Jan Larres a954c7c3a1 Small adjustments to website 2012-03-05 21:35:39 +13:00
Jan Larres d165e65644 Small header change 2012-02-27 23:30:03 +13:00
Jan Larres b92b01003c Version 2.3 2011-12-24 18:14:55 +13:00
Jan Larres f41c298068 Mention the wiki 2011-12-24 17:29:05 +13:00
Jan Larres 0abb2f49f3 Add desert pygments theme 2011-12-15 18:39:06 +13:00
Jan Larres a100be015a Mention 70fix version 2011-11-26 19:51:06 +13:00
Jan Larres 25f6d8c01f Version 2.2 2011-11-26 18:27:26 +13:00
Jan Larres 34d5891070 Update screenshots 2011-11-25 16:12:12 +13:00
Jan Larres 60523b2bd8 Add quickstart 2011-11-25 15:47:55 +13:00
Jan Larres 307e58a670 Make use of jekyll 2011-11-23 22:28:00 +13:00
Jan Larres b8b0e92f72 Change title 2011-07-04 20:22:28 +12:00
Jan Larres 762df7abb0 Update for v2.1 2011-05-29 19:32:20 +12:00
Jan Larres bb364643e0 Update website for v2.0.1 2011-04-27 01:07:24 +12:00
Jan Larres bbf378e612 Update website for 2.0 2011-04-26 23:42:11 +12:00
Jan Larres afdef165e7 Update for v1.5 2011-03-06 23:56:17 +13:00
Jan Larres e72b32134c Update webpage 2011-02-28 23:43:58 +13:00
Jan Larres 6fec9847cc Small clarification 2011-02-20 02:50:17 +13:00
Jan Larres 91a33f60be Small clarification 2011-02-20 02:37:30 +13:00
Jan Larres 32aa62882e Update web site 2011-02-20 02:29:01 +13:00
majutsushi 7100d49039 github generated gh-pages branch 2011-02-19 04:44:03 -08:00
29 changed files with 464 additions and 5682 deletions
-4
View File
@@ -1,4 +0,0 @@
.gitignore export-ignore
.gitattributes export-ignore
README export-ignore
.info export-ignore
+1 -1
View File
@@ -1 +1 @@
/doc/tags
_site/
-2
View File
@@ -1,2 +0,0 @@
tagbar
3465
-19
View File
@@ -1,19 +0,0 @@
# Overview
Tagbar is a vim plugin for browsing the tags of source code files.
It provides a sidebar that displays the ctags-generated tags of the current file, ordered by their scope. This means that for example methods in C++ are displayed under the class they are defined in.
Check out the homepage at http://majutsushi.github.io/tagbar/ for more information.
# Support for additional filetypes
For filetypes that are not supported by Exuberant Ctags check out [the wiki](https://github.com/majutsushi/tagbar/wiki) to see whether other projects offer support for them and how to use them. Please add any other projects/configurations that you find or create yourself so that others can benefit from them, too.
# Important: If the file structure is displayed wrong
If you notice that there are some errors in the way your file's structure is displayed in Tagbar, please make sure that the bug is actually in Tagbar before you report a bug. Since Tagbar uses [exuberant-ctags](http://ctags.sourceforge.net/) and compatible programs to do the actual file parsing, it is likely that the bug is actually in one of those programs instead.
There is an example in `:h tagbar-issues` about how to run ctags manually so you can determine where the bug actually is. If the bug is actually in ctags, please report it on their website instead, as there is nothing I can do about it in Tagbar. Thank you!
You can also have a look at ctags bugs that have previously been filed on Tagbar here:
https://github.com/majutsushi/tagbar/issues?labels=ctags-bug&page=1&state=closed
+2
View File
@@ -0,0 +1,2 @@
markdown: rdiscount
highlighter: pygments
+7
View File
@@ -0,0 +1,7 @@
<p>1.0 (2011-02-23)
<a href="https://github.com/majutsushi/tagbar/zipball/v1.0">zip</a>
<a href="https://github.com/majutsushi/tagbar/tarball/v1.0">tar</a>
<ul>
<li>Initial release</li>
</ul>
</p>
+80
View File
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>{{ page.title }}</title>
<!-- <link rel="stylesheet" href="/css/fonts.css" type="text/css" charset="utf-8" /> -->
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic|Ubuntu+Mono:400,700' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
margin-top: 1.0em;
/* background-color: #1C1C1C; */
background-color: #202020;
font-size: 16px;
font-family: Ubuntu, Helvetica, Arial, FreeSans;
color: #F0E7D5;
/* color: #FFFFFF; */
}
#container {
margin: 0 auto;
width: 650px;
}
h1 {
font-size: 3.0em;
color: #dddddd;
margin-bottom: 3px;
text-shadow: #111111 3px 3px 1px;
text-align: center;
}
h1 .small { font-size: 0.4em; }
h1 a { text-decoration: none; color: #F0E7D5 }
h2 { font-size: 1.5em; color: #dddddd; text-shadow: #111111 1px 1px 1px; }
h3 { text-align: left; color: #dddddd; }
a { color: #ffcc00; }
.description { font-size: 1.2em; margin-bottom: 30px; margin-top: 30px; font-style: italic;}
.download { float: right; }
pre {
background: #333333;
color: #ffffff;
padding: 8px 15px 8px 15px;
border-width: 1px;
border-color: #222222;
border-style: solid;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px 0 inset;
font-family: "Ubuntu Mono", monospace;
}
.pre {
background: #333333;
color: #ffffff;
padding: 2px 3px 2px 3px;
border-width: 1px;
border-color: #222222;
border-style: solid;
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 2px 0 inset;
font-family: "Ubuntu Mono", monospace;
}
code { font-family: "Ubuntu Mono", monospace; }
hr { border: 0; width: 80%; border-bottom: 1px solid #aaa}
#title {
margin-bottom: 50px;
}
#title p {
font-size: 1.8em;
text-align: center;
color: #999999;
}
.footer { text-align:center; padding-top:30px; font-style: italic; }
</style>
<link rel="stylesheet" href="/css/desert.css" type="text/css" />
</head>
<body>
{{ content }}
</body>
</html>
+5
View File
@@ -0,0 +1,5 @@
---
title: 1.0
---
- Initial release
+6
View File
@@ -0,0 +1,6 @@
---
title: 1.1
---
- Don't lose syntax highlighting when ':syntax enable' is called
- Allow expanding the Vim window when Tagbar is opened
+5
View File
@@ -0,0 +1,5 @@
---
title: 1.2
---
- Fix typo in Ruby definition
+14
View File
@@ -0,0 +1,14 @@
---
title: 1.5
---
- Type definitions can now include a path to a file with the ctags
definition. This is especially useful for ftplugins that can now ship with
a complete ctags and Tagbar configuration without requiring user
intervention. Thanks to Jan Christoph Ebersbach for the suggestion.
- Added autofocus setting by Taybin Rutkin. This will put the cursor in the
Tagbar window when it is opened.
- The "scopes" field is no longer needed in type definitions, the
information is already there in "scope2kind". Existing definitions will be
ignored.
- Some fixes and improvements related to redrawing and window switching.
+5
View File
@@ -0,0 +1,5 @@
---
title: 2.0.1
---
- Fixed sorting bug when 'ignorecase' is set
+14
View File
@@ -0,0 +1,14 @@
---
title: 2.0
---
- Folding now works correctly. Folds will be preserved when leaving the
Tagbar window and when switching between files. Also tag types can be
configured to be folded by default, which is useful for things like
includes and imports.
- DoctorJS/jsctags and other compatible programs are now supported.
- All of the highlight groups can now be overridden.
- Added keybinding to quickly jump to next/previous top-level tag.
- Added Taglist's "p" keybinding for jumping to a tag without leaving the
Tagbar window.
- Several bugfixes and other small improvements.
+18
View File
@@ -0,0 +1,18 @@
---
title: 2.1
---
- Make Tagbar work in (hopefully) all cases under Windows
- Handle cases where 'encoding' is different from system encoding, for
example on a Chinese Windows with 'encoding' set to "utf-8" (see manual
for details in case it doesn't work out-of-the-box)
- Fixed a bug with the handling of subtypes like "python.django"
- If a session got saved with Tagbar open it now gets restored properly
- Locally reset foldmethod/foldexpr in case foldexpr got set to something
expensive globally
- Tagbar now tries hard to go to the correct window when jumping to a tag
- Explain some possible issues with the current jsctags version in the
manual
- Explicitly check for some possible configuration problems to be able to
give better feedback
- A few other small fixes
+19
View File
@@ -0,0 +1,19 @@
---
title: 2.2
---
- Small incompatible change: TagbarOpen now doesn't jump to the Tagbar window
anymore if it is already open. Use "TagbarOpen j" instead or see its
documentation for more options.
- Tags inside of scopes now have a header displaying their "kind".
- The Tagbar contents are now immediately updated on save for files smaller
than a configurable size.
- Tagbar can now be configured to jump to a tag with only a single-click
instead of a double-click.
- Most of the script has been moved to the autoload directory, so Vim startup
should be faster (thanks to Kien N).
- Jumping to tags should work most of the time even if the file has been
modified and not saved.
- If Ctags has been installed into the default location using Homebrew or
MacPorts it should now be found automatically.
- Several bugfixes.
+12
View File
@@ -0,0 +1,12 @@
---
title: 2.3
---
- Add a convenience function that allows more flexible ways to automatically
open Tagbar.
- Replace option tagbar_usearrows with tagbar_iconchars to allow custom
characters to be specified. This helps with fonts that don't display the
default characters properly.
- Remove the need to provide the complete jsctags configuration if jsctags is
not found in $PATH, now only the concrete path has to be specified.
- Add debugging functionality.
+11
View File
@@ -0,0 +1,11 @@
---
title: 2.4
---
- New function tagbar#currenttag() that reports the current tag, for example
for putting it into the statusline.
- New command TagbarGetTypeConfig for easy customization of an existing type.
- Type definitions now can be loaded from ftplugins.
- The autoopen() function is now a bit more flexible.
- Vala is now supported if Anjuta is installed.
- Various other small improvements and bugfixes.
+10
View File
@@ -0,0 +1,10 @@
---
title: 2.4.1
---
- Fixed some bugs related to the currenttag() function when it was called
before the rest of the plugin was loaded. Also fail silently in case
something goes wrong so the statusline doesn't get messed up.
- In certain cases highlighting tags in deeply nested folds could cause an
error message.
- Spellchecking is now correctly getting disabled in the Tagbar window.
+28
View File
@@ -0,0 +1,28 @@
---
title: 2.5
---
- New command :TagbarTogglePause to freeze Tagbar in its current state so you
can switch to other files while keeping the old information displayed for
reference. (Kian Ryan)
- New command :TagbarCurrentTag which reports the same information as
currenttag().
- New option tagbar_indent to configure the indentation depth of the tags.
- New option tagbar_show_visibility to allow disabling the visibility symbols.
- Files are now cached locally to avoid additional slowdowns for slow
connections. This also makes it possible to use Tagbar with files accessed
through Netrw.
- Execute ctags again even if the previous run reported errors, in case it was
a parse error that has since been fixed. If the error persists, don't
display it again.
- Improved window switching and Vim exit behaviours. (Techlive Zheng)
- The currenttag() function now can show the prototype instead of the actual
tag, which can be useful in some cases where ctags doesn't report all the
interesting information.
- The prototype shown in the tooltip or command line should now always be
complete, even if it is spread out over more than one line in the source
file.
- The TagbarAccessPublic etc. highlight groups have been renamed to
TagbarVisibilityPublic etc. to keep them in line with standard terminology.
The old names are still supported.
- Various smaller improvements and bugfixes.
+16
View File
@@ -0,0 +1,16 @@
---
title: 2.6
---
- Added possibility to show tags in the preview window, either manually or
automatically.
- Allow customizing the statusline, see :help g:tagbar_status_func.
- Type configuration can now be project-specific.
- The keybindings in the Tagbar window are now configurable.
- Improvements to Ctags execution on Windows, thanks to Darcy Parker.
- Added function tagbar#currentfile() that returns the path to the file
currently being displayed in Tagbar, thanks to Zhao Cai.
- Added a :Tagbar command as an alias for :TagbarToggle.
- Added an way to ignore specific files in case they create problems.
- Optionally show line numbers in the Tagbar window.
- The usual bunch of small improvements and bugfixes.
+9
View File
@@ -0,0 +1,9 @@
---
title: 2.6.1
---
- Automatically close the preview window when jumping to a tag
- Don't forget the previous window in certain situations, which was causing
problems with for example fugitive
- Fixed toggling kind-specific folds
- Fixed ctags error that can happen with Cygwin
+22
View File
@@ -0,0 +1,22 @@
---
layout: default
title: Old releases
---
<a href="https://github.com/majutsushi/tagbar"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<div id="container">
<h3>Old releases</h3>
{% for post in site.posts offset:1 %}
<span style="font-weight:bold">{{ post.title }}</span> ({{ post.date | date:"%Y-%m-%d" }})
<a href="https://github.com/majutsushi/tagbar/zipball/v{{ post.title }}">zip</a>
<a href="https://github.com/majutsushi/tagbar/tarball/v{{ post.title }}">tar</a>
{{ post.content }}
{% endfor %}
</div>
-4045
View File
File diff suppressed because it is too large Load Diff
+70
View File
@@ -0,0 +1,70 @@
.highlight { background: #333333; color: #ffffff}
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #87ceeb} /* Comment */
.highlight .err { color: #ffffff} /* Error */
.highlight .g { color: #ffffff} /* Generic */
.highlight .k { color: #f0e68c; font-weight: bold } /* Keyword */
.highlight .l { color: #ffffff} /* Literal */
.highlight .n { color: #ffffff} /* Name */
.highlight .o { color: #ffffff} /* Operator */
.highlight .x { color: #ffffff} /* Other */
.highlight .p { color: #ffffff} /* Punctuation */
.highlight .cm { color: #87ceeb} /* Comment.Multiline */
.highlight .cp { color: #cd5c5c} /* Comment.Preproc */
.highlight .c1 { color: #87ceeb} /* Comment.Single */
.highlight .cs { color: #87ceeb} /* Comment.Special */
.highlight .gd { color: #0000c0; font-weight: bold; background-color: #008080 } /* Generic.Deleted */
.highlight .ge { color: #c000c0; text-decoration: underline} /* Generic.Emph */
.highlight .gr { color: #c0c0c0; font-weight: bold; background-color: #c00000 } /* Generic.Error */
.highlight .gh { color: #cd5c5c} /* Generic.Heading */
.highlight .gi { color: #ffffff; background-color: #0000c0 } /* Generic.Inserted */
.highlight .go { color: #add8e6; font-weight: bold; background-color: #4d4d4d } /* Generic.Output */
.highlight .gp { color: #ffffff} /* Generic.Prompt */
.highlight .gs { color: #ffffff} /* Generic.Strong */
.highlight .gu { color: #cd5c5c} /* Generic.Subheading */
.highlight .gt { color: #c0c0c0; font-weight: bold; background-color: #c00000 } /* Generic.Traceback */
.highlight .kc { color: #f0e68c; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #f0e68c; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #f0e68c; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #f0e68c; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #f0e68c; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #bdb76b; font-weight: bold } /* Keyword.Type */
.highlight .ld { color: #ffffff} /* Literal.Date */
.highlight .m { color: #ffffff} /* Literal.Number */
.highlight .s { color: #ffffff} /* Literal.String */
.highlight .na { color: #ffffff} /* Name.Attribute */
.highlight .nb { color: #ffffff} /* Name.Builtin */
.highlight .nc { color: #ffffff} /* Name.Class */
.highlight .no { color: #ffa0a0} /* Name.Constant */
.highlight .nd { color: #ffffff} /* Name.Decorator */
.highlight .ni { color: #ffdead} /* Name.Entity */
.highlight .ne { color: #ffffff} /* Name.Exception */
.highlight .nf { color: #ffffff} /* Name.Function */
.highlight .nl { color: #ffffff} /* Name.Label */
.highlight .nn { color: #ffffff} /* Name.Namespace */
.highlight .nx { color: #ffffff} /* Name.Other */
.highlight .py { color: #ffffff} /* Name.Property */
.highlight .nt { color: #f0e68c} /* Name.Tag */
.highlight .nv { color: #98fb98} /* Name.Variable */
.highlight .ow { color: #ffffff} /* Operator.Word */
.highlight .w { color: #ffffff} /* Text.Whitespace */
.highlight .mf { color: #ffffff} /* Literal.Number.Float */
.highlight .mh { color: #ffffff} /* Literal.Number.Hex */
.highlight .mi { color: #ffffff} /* Literal.Number.Integer */
.highlight .mo { color: #ffffff} /* Literal.Number.Oct */
.highlight .sb { color: #ffffff} /* Literal.String.Backtick */
.highlight .sc { color: #ffffff} /* Literal.String.Char */
.highlight .sd { color: #ffffff} /* Literal.String.Doc */
.highlight .s2 { color: #ffffff} /* Literal.String.Double */
.highlight .se { color: #ffffff} /* Literal.String.Escape */
.highlight .sh { color: #ffffff} /* Literal.String.Heredoc */
.highlight .si { color: #ffffff} /* Literal.String.Interpol */
.highlight .sx { color: #ffffff} /* Literal.String.Other */
.highlight .sr { color: #ffffff} /* Literal.String.Regex */
.highlight .s1 { color: #ffffff} /* Literal.String.Single */
.highlight .ss { color: #ffffff} /* Literal.String.Symbol */
.highlight .bp { color: #ffffff} /* Name.Builtin.Pseudo */
.highlight .vc { color: #98fb98} /* Name.Variable.Class */
.highlight .vg { color: #98fb98} /* Name.Variable.Global */
.highlight .vi { color: #98fb98} /* Name.Variable.Instance */
.highlight .il { color: #ffffff} /* Literal.Number.Integer.Long */
-1418
View File
File diff suppressed because it is too large Load Diff
+77
View File
@@ -0,0 +1,77 @@
---
layout: default
title: Tagbar, the Vim class outline viewer
---
<a href="https://github.com/majutsushi/tagbar"><img alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" style="position: absolute; top: 0; right: 0; border: 0;"/></a>
<div id="container">
<div id="title">
<h1><a href="https://github.com/majutsushi/tagbar">Tagbar</a></h1>
<p>A class outline viewer for Vim</p>
</div>
<div id="markdown-output"><h2>What Tagbar is</h2><p>Tagbar is a Vim plugin that provides an easy way to browse the tags of the
current file and get an overview of its structure. It does this by creating a
sidebar that displays the ctags-generated tags of the current file, ordered by
their scope. This means that for example methods in C++ are displayed under
the class they are defined in.</p><h2>What Tagbar is not</h2><p>Tagbar is not a general-purpose tool for managing <code>tags</code> files. It only
creates the tags it needs on-the-fly in-memory without creating any files.
<code>tags</code> file management is provided by other plugins, like for example
<a href="https://github.com/xolox/vim-easytags">easytags</a>.</p><h2>Dependencies</h2><p><a href="http://www.vim.org/">Vim 7.0</a> (But see note below)<br/>
<a href="http://ctags.sourceforge.net/">Exuberant ctags 5.5</a></p><h2>Installation</h2><p>Extract the archive or clone the repository into a directory in your
<code>'runtimepath'</code>, or use a plugin manager of your choice like
<a href="https://github.com/tpope/vim-pathogen">pathogen</a>. Don't forget to run
<code>:helptags</code> if your plugin manager doesn't do it for you so you can access the
documentation with <code>:help tagbar</code>.</p><p>Note: Vim versions &lt; 7.0.167 have a bug that prevents Tagbar from working. If
you are affected by this use this alternate Tagbar download instead:
<a href="https://github.com/majutsushi/tagbar/zipball/70fix">zip</a>. It is on par with
version 2.2 but probably won't be updated after that due to the amount of
changes required.</p><p>If the ctags executable is not installed in one of the directories in your
<code>$PATH</code> environment variable you have to set the <code>g:tagbar_ctags_bin</code>
variable, see the documentation for more info.</p><h2>Quickstart</h2><p>Put something like the following into your ~/.vimrc:</p><pre><code class="vim">nmap &lt;F8&gt; :TagbarToggle&lt;CR&gt;
</code></pre><p>If you do this the F8 key will toggle the Tagbar window. You can of course use
any shortcut you want. For more flexible ways to open and close the window
(and the rest of the functionality) see the documentation.</p><h2>Support for additional filetypes</h2><p>For filetypes that are not supported by Exuberant Ctags check out <a href="https://github.com/majutsushi/tagbar/wiki">the
wiki</a> to see whether other projects
offer support for them and how to use them. Please add any other
projects/configurations that you find or create yourself so that others can
benefit from them, too.</p><h2>Note: If the file structure display is wrong</h2><p>If you notice that there are some errors in the way your file's structure is
displayed in Tagbar, please make sure that the bug is actually in Tagbar
before you report an issue. Since Tagbar uses
<a href="http://ctags.sourceforge.net/">exuberant-ctags</a> and compatible programs to do
the actual file parsing, it is likely that the bug is actually in the program
responsible for that filetype instead.</p><p>There is an example in <code>:h tagbar-issues</code> about how to run ctags manually so
you can determine where the bug actually is. If the bug is actually in ctags,
please report it on their website instead, as there is nothing I can do about
it in Tagbar. Thank you!</p><p>You can also have a look at <a href="https://github.com/majutsushi/tagbar/issues?labels=ctags-bug&amp;page=1&amp;state=closed">ctags bugs that have previously been filed
against Tagbar</a>.</p><h2>Screenshots</h2><p><img alt="screenshot1" src="https://i.imgur.com/Sf9Ls2r.png"/>
<img alt="screenshot2" src="https://i.imgur.com/n4bpPv3.png"/></p><h2>License</h2><p>Vim license, see LICENSE</p><h2>Maintainer</h2><p>Jan Larres &lt;<a href="mailto:jan@majutsushi.net">jan@majutsushi.net</a>&gt;</p></div>
<h2>Download</h2>
<h3>Latest stable release</h3>
{% for post in site.posts limit:1 %}
<span style="font-weight:bold">{{ post.title }}</span> ({{ post.date | date:"%Y-%m-%d" }})
<a href="https://github.com/majutsushi/tagbar/zipball/v{{ post.title }}">zip</a>
<a href="https://github.com/majutsushi/tagbar/tarball/v{{ post.title }}">tar</a>
{{ post.content }}
{% endfor %}
<a href="archive">Old releases</a>
<h3>Latest development version</h3>
<p>
Download as:
<a href="https://github.com/majutsushi/tagbar/zipball/master">zip</a>
<a href="https://github.com/majutsushi/tagbar/tarball/master">tar</a>
</p>
<p>
You can also clone the project with <a href="http://git-scm.com">Git</a>
by running:
<pre>$ git clone git://github.com/majutsushi/tagbar</pre>
</p>
<div class="footer">
get the source code on GitHub : <a href="https://github.com/majutsushi/tagbar">majutsushi/tagbar</a>
</div>
</div>
-130
View File
@@ -1,130 +0,0 @@
" ============================================================================
" File: tagbar.vim
" Description: List the current file's tags in a sidebar, ordered by class etc
" Author: Jan Larres <jan@majutsushi.net>
" Licence: Vim licence
" Website: http://majutsushi.github.com/tagbar/
" Version: 2.6
" Note: This plugin was heavily inspired by the 'Taglist' plugin by
" Yegappan Lakshmanan and uses a small amount of code from it.
"
" Original taglist copyright notice:
" Permission is hereby granted to use and distribute this code,
" with or without modifications, provided that this copyright
" notice is copied with it. Like anything else that's free,
" taglist.vim is provided *as is* and comes with no warranty of
" any kind, either expressed or implied. In no event will the
" copyright holder be liable for any damamges resulting from the
" use of this software.
" ============================================================================
scriptencoding utf-8
if &cp || exists('g:loaded_tagbar')
finish
endif
" Basic init {{{1
if v:version < 700
echohl WarningMsg
echomsg 'Tagbar: Vim version is too old, Tagbar requires at least 7.0'
echohl None
finish
endif
if v:version == 700 && !has('patch167')
echohl WarningMsg
echomsg 'Tagbar: Vim versions lower than 7.0.167 have a bug'
\ 'that prevents this version of Tagbar from working.'
\ 'Please use the alternate version posted on the website.'
echohl None
finish
endif
function! s:init_var(var, value) abort
if !exists('g:tagbar_' . a:var)
execute 'let g:tagbar_' . a:var . ' = ' . string(a:value)
endif
endfunction
let s:options = [
\ ['autoclose', 0],
\ ['autofocus', 0],
\ ['autopreview', 0],
\ ['autoshowtag', 0],
\ ['compact', 0],
\ ['expand', 0],
\ ['foldlevel', 99],
\ ['indent', 2],
\ ['left', 0],
\ ['previewwin_pos', 'topleft'],
\ ['show_visibility', 1],
\ ['show_linenumbers', 0],
\ ['singleclick', 0],
\ ['sort', 1],
\ ['systemenc', &encoding],
\ ['width', 40],
\ ]
for [opt, val] in s:options
call s:init_var(opt, val)
endfor
unlet s:options
if !exists('g:tagbar_iconchars')
if has('multi_byte') && has('unix') && &encoding == 'utf-8' &&
\ (empty(&termencoding) || &termencoding == 'utf-8')
let g:tagbar_iconchars = ['â–¶', 'â–Ľ']
else
let g:tagbar_iconchars = ['+', '-']
endif
endif
let s:keymaps = [
\ ['jump', '<CR>'],
\ ['preview', 'p'],
\ ['previewwin', 'P'],
\ ['nexttag', '<C-N>'],
\ ['prevtag', '<C-P>'],
\ ['showproto', '<Space>'],
\
\ ['openfold', ['+', '<kPlus>', 'zo']],
\ ['closefold', ['-', '<kMinus>', 'zc']],
\ ['togglefold', ['o', 'za']],
\ ['openallfolds', ['*', '<kMultiply>', 'zR']],
\ ['closeallfolds', ['=', 'zM']],
\
\ ['togglesort', 's'],
\ ['zoomwin', 'x'],
\ ['close', 'q'],
\ ['help', '<F1>'],
\ ]
for [map, key] in s:keymaps
call s:init_var('map_' . map, key)
unlet key
endfor
unlet s:keymaps
augroup TagbarSession
autocmd!
autocmd SessionLoadPost * nested call tagbar#RestoreSession()
augroup END
" Commands {{{1
command! -nargs=0 Tagbar call tagbar#ToggleWindow()
command! -nargs=0 TagbarToggle call tagbar#ToggleWindow()
command! -nargs=? TagbarOpen call tagbar#OpenWindow(<f-args>)
command! -nargs=0 TagbarOpenAutoClose call tagbar#OpenWindow('fcj')
command! -nargs=0 TagbarClose call tagbar#CloseWindow()
command! -nargs=1 -bang TagbarSetFoldlevel call tagbar#SetFoldLevel(<args>, <bang>0)
command! -nargs=0 TagbarShowTag call tagbar#highlighttag(1, 1)
command! -nargs=? TagbarCurrentTag echo tagbar#currenttag('%s', 'No current tag', <f-args>)
command! -nargs=1 TagbarGetTypeConfig call tagbar#gettypeconfig(<f-args>)
command! -nargs=? TagbarDebug call tagbar#StartDebug(<f-args>)
command! -nargs=0 TagbarDebugEnd call tagbar#StopDebug()
command! -nargs=0 TagbarTogglePause call tagbar#toggle_pause()
" Modeline {{{1
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1
-63
View File
@@ -1,63 +0,0 @@
" File: tagbar.vim
" Description: Tagbar syntax settings
" Author: Jan Larres <jan@majutsushi.net>
" Licence: Vim licence
" Website: http://majutsushi.github.com/tagbar/
" Version: 2.6
scriptencoding utf-8
if exists("b:current_syntax")
finish
endif
let s:ics = escape(join(g:tagbar_iconchars, ''), ']^\-')
let s:pattern = '\(^[' . s:ics . '] \?\)\@<=[^-+: ]\+[^:]\+$'
execute "syntax match TagbarKind '" . s:pattern . "'"
let s:pattern = '\(\S\@<![' . s:ics . '][-+# ]\?\)\@<=[^*(]\+\(\*\?\(([^)]\+)\)\? :\)\@='
execute "syntax match TagbarScope '" . s:pattern . "'"
let s:pattern = '\S\@<![' . s:ics . ']\([-+# ]\?\)\@='
execute "syntax match TagbarFoldIcon '" . s:pattern . "'"
let s:pattern = '\(\S\@<![' . s:ics . ' ]\)\@<=+\([^-+# ]\)\@='
execute "syntax match TagbarVisibilityPublic '" . s:pattern . "'"
let s:pattern = '\(\S\@<![' . s:ics . ' ]\)\@<=#\([^-+# ]\)\@='
execute "syntax match TagbarVisibilityProtected '" . s:pattern . "'"
let s:pattern = '\(\S\@<![' . s:ics . ' ]\)\@<=-\([^-+# ]\)\@='
execute "syntax match TagbarVisibilityPrivate '" . s:pattern . "'"
unlet s:pattern
syntax match TagbarHelp '^".*' contains=TagbarHelpKey,TagbarHelpTitle
syntax match TagbarHelpKey '" \zs.*\ze:' contained
syntax match TagbarHelpTitle '" \zs-\+ \w\+ -\+' contained
syntax match TagbarNestedKind '^\s\+\[[^]]\+\]$'
syntax match TagbarType ' : \zs.*'
syntax match TagbarSignature '(.*)'
syntax match TagbarPseudoID '\*\ze :'
highlight default link TagbarHelp Comment
highlight default link TagbarHelpKey Identifier
highlight default link TagbarHelpTitle PreProc
highlight default link TagbarKind Identifier
highlight default link TagbarNestedKind TagbarKind
highlight default link TagbarScope Title
highlight default link TagbarType Type
highlight default link TagbarSignature SpecialKey
highlight default link TagbarPseudoID NonText
highlight default link TagbarFoldIcon Statement
highlight default link TagbarHighlight Search
highlight default TagbarAccessPublic guifg=Green ctermfg=Green
highlight default TagbarAccessProtected guifg=Blue ctermfg=Blue
highlight default TagbarAccessPrivate guifg=Red ctermfg=Red
highlight default link TagbarVisibilityPublic TagbarAccessPublic
highlight default link TagbarVisibilityProtected TagbarAccessProtected
highlight default link TagbarVisibilityPrivate TagbarAccessPrivate
let b:current_syntax = "tagbar"
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/env python
# This script is originally from the YouCompleteMe project.
from bs4 import BeautifulSoup
from markdown import markdown
import fileinput
markdown_lines = list(fileinput.input())
# Delete the header
del markdown_lines[:2]
markdown_source = ''.join(markdown_lines)
with open('index.html', 'r+') as content_file:
content = content_file.read()
new_contents = markdown(unicode(markdown_source, 'utf-8'),
extensions=['fenced_code'])
new_tags = BeautifulSoup(new_contents, 'html5lib')
# soup = BeautifulSoup(content, "html5lib")
# Use the normal html parser so it doesn't add html/body tags
# around our fragment
soup = BeautifulSoup(content, "html.parser")
elem = soup.find(id="markdown-output")
elem.clear()
for new_elem in new_tags.body.contents:
elem.append(new_elem)
content_file.seek(0)
content_file.truncate()
content_file.write(str(soup))