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

229 Commits

Author SHA1 Message Date
Jan Larres 81cfb3f903 Version 2.3 2011-12-24 18:14:54 +13:00
Jan Larres 49aa899098 Mention the wiki 2011-12-24 17:22:15 +13:00
Jan Larres 8e5ce3a3e5 Replace usearrows with iconchars 2011-12-22 18:06:48 +13:00
Jan Larres f9b50a1e95 Remove need to provide complete jsctags configuration if jsctags not in path 2011-12-21 20:33:31 +13:00
Jan Larres 9a2cf9756f Add convenience function for automatically opening Tagbar 2011-12-21 19:28:34 +13:00
Jan Larres a93bd87715 Extract some init steps into function 2011-12-21 17:03:12 +13:00
Jan Larres f3973b1817 Fix bug when scope field exists but is empty 2011-12-13 18:24:24 +13:00
Jan Larres 5461adc534 Skip comments in ctags output 2011-12-12 19:47:59 +13:00
Jan Larres 32d266a430 Add debugging functionality 2011-12-12 19:47:43 +13:00
Jan Larres 4cc123f3f2 Version 2.2 2011-11-26 17:45:08 +13:00
Jan Larres 81b16888fb Add simple info file 2011-11-25 22:48:02 +13:00
Jan Larres 5c50b77a5a Work around a statusline bug in Vim < 7.1.097 2011-11-25 19:50:48 +13:00
Jan Larres 4bc7555b80 Mention existing configurations 2011-11-25 16:26:13 +13:00
Jan Larres bccf3d3473 Update credits 2011-11-25 01:37:51 +13:00
Jan Larres 555be533a4 Display 'kind' headers inside of scopes 2011-11-24 19:22:31 +13:00
Jan Larres 20ff7303a6 Update tagbar when filetype changes 2011-11-24 01:27:54 +13:00
Jan Larres e9aa349d10 Make TagbarOpen command more flexible 2011-11-23 19:56:31 +13:00
Jan Larres c07e878249 Update on save for smaller files, closes #40 2011-11-17 22:17:59 +13:00
Jan Larres 7cc9789d63 Locally disable cursorline/column, closes #49 2011-11-15 18:29:54 +13:00
Jan Larres 960332efb1 Don't jump do the tagbar window on TagbarOpen if already open 2011-11-03 04:29:12 +13:00
Jan Larres 4c907e56c1 Set foldcolumn to 0 locally, closes #46 2011-10-23 02:23:58 +13:00
Jan Larres 4b8cc056bf Add .gitattributes file to avoid exporting superfluous files 2011-10-17 02:23:40 +13:00
Jan Larres f03011b955 Temporarily reset 'wildignore' when calling expand() 2011-10-15 18:48:29 +13:00
Jan Larres fef95d7167 Accept ctags development versions 2011-10-15 18:40:27 +13:00
Jan Larres 22b2329720 Always jump to previous window when closing tagbar, closes #44 2011-10-14 17:39:27 +13:00
Jan Larres 849fcbcd5a Simplify some wincmd calls 2011-10-14 17:33:52 +13:00
Jan Larres 7163f4e4fa Check for ctags in default locations of homebrew and macports 2011-10-03 01:57:33 +13:00
Jan Larres 9a6e21e44d Don't highlight the same tag again, closes #36 2011-10-02 22:39:39 +13:00
Jan Larres 3c075654d4 Update line info when jumping to a tag, closes #26 2011-08-14 18:11:54 +12:00
Jan Larres 3b389aed00 Ignore events when jumping to a tag and opening the window, closes #17 2011-07-16 22:14:46 +12:00
Jan Larres 96d0050ea4 Move some tests to autoload 2011-07-15 17:34:47 +12:00
Kien N 4920be4438 move basic init & autocmd back to plugin/ 2011-07-03 16:14:56 +07:00
Kien N 49ad69c41a Pass arguments to autoload/tagbar.vim 2011-06-29 04:09:52 +07:00
Kien N 889a0d5b88 Move most of script to autoload 2011-06-29 03:59:49 +07:00
Jan Larres d17c2dd227 Some improvements to the documentation 2011-06-24 14:47:26 +12:00
Jan Larres e979e9abcd Delete empty lines silently, closes #27 2011-06-24 12:37:01 +12:00
Jan Larres 5da16328b6 Check for out of sync configurations 2011-06-20 16:30:09 +12:00
Jan Larres e84efc3366 Also set scriptencoding in syntax file 2011-06-18 18:54:53 +12:00
Jan Larres 20ea53630b Add "scriptencoding" directive to avoid encoding issues 2011-06-18 18:46:04 +12:00
Jan Larres a0939108d2 Try to jump to the correct line after a file has been changed but not saved, closes #20 2011-06-18 18:10:44 +12:00
Jan Larres 58d16c1a62 Allow mouse clicks in insert mode, closes #21 2011-06-06 19:18:32 +12:00
Jan Larres 23e2f22b04 Merge pull request #19 from freitass/ignore-tags
Ignore /doc/tags
2011-06-05 23:55:56 -07:00
Jan Larres 7aa936dc9c Allow single-click for jumping to a tag, closes #16 2011-06-06 18:42:35 +12:00
Leandro Freitas 24344115b5 Ignore /doc/tags 2011-05-31 16:45:27 -03:00
Jan Larres 9d5af93a5b Version 2.1 2011-05-29 19:19:03 +12:00
Jan Larres 8662779deb Properly restore Tagbar after a session got loaded 2011-05-25 15:18:26 +12:00
Jan Larres 397e1741f8 Check version of exuberant ctags 2011-05-23 22:43:47 +12:00
Jan Larres 8cde134333 Return an empty string when encoding conversion fails 2011-05-22 17:23:11 +12:00
Jan Larres 5b819914b9 Test for Vim >= 7.0 2011-05-19 01:42:18 +12:00
Jan Larres 8d1ba9fc11 Clarify that type definitions have to be put into vimrc 2011-05-16 00:00:06 +12:00
Jan Larres cd188c6669 Locally reset foldmethod and foldexpr in case it's set to something expensive globally 2011-05-15 18:26:10 +12:00
Jan Larres e84eda8437 Ignore autocmds when printing just in case 2011-05-15 18:26:10 +12:00
Jan Larres 49c15b92d8 Properly resize window when pressing 'q', closes #15 2011-05-13 16:06:34 +12:00
Jan Larres 845754bdad Don't check ctags on each 'window open' 2011-05-12 20:50:14 +12:00
Jan Larres 7a06b1615f Make the ctags execution work in (hopefully) all cases under Windows 2011-05-09 23:40:07 +12:00
Jan Larres d8122efcc6 Extract ctags execution into separate function 2011-05-08 23:08:15 +12:00
Jan Larres e28eab7945 Explain some jsctags issues 2011-05-07 18:48:59 +12:00
Jan Larres c33b0409cd Check whether filetype detection is turned on 2011-05-07 18:13:00 +12:00
Jan Larres 1a77a1e9c6 Add additional ctags binary name 2011-05-07 18:06:29 +12:00
Jan Larres 804aa3b170 Small cleanup 2011-05-07 18:04:01 +12:00
Jan Larres 8b539ad91c Explicitly check for Exuberant Ctags 2011-05-07 18:02:03 +12:00
Jan Larres 33d5a5e84f Fix bug with empty filetype 2011-05-07 04:17:26 +12:00
Jan Larres eb10c1d05c Fix bug with subtypes not being properly recognized 2011-05-07 03:46:56 +12:00
Jan Larres 1916c55b7c Handle cases where 'encoding' is different from system encoding 2011-05-05 21:27:47 +12:00
Jan Larres 98fe5ec994 Make sure to jump to the correct buffer/window on tag jump 2011-04-27 15:48:07 +12:00
Jan Larres a76d07cfeb Version 2.0.1 2011-04-27 01:03:04 +12:00
Jan Larres 40d8edf505 Fix sorting bug when 'ignorecase' is set 2011-04-27 01:01:27 +12:00
Jan Larres 1f4713d4ab Typo 2011-04-26 23:46:10 +12:00
Jan Larres b4ed33c4bc Version 2.0 2011-04-26 23:31:04 +12:00
Jan Larres 81f71d8c66 Update credits 2011-04-26 21:00:00 +12:00
Jan Larres 39a62ae9f4 Simplify some function signatures 2011-04-26 02:18:55 +12:00
Jan Larres 98270ed439 Doc configuration clarification 2011-04-26 02:07:03 +12:00
Jan Larres 25bbf9b889 Change TagbarScopeType highlight to TagbarType 2011-04-26 02:01:13 +12:00
Jan Larres 8490f6a5c2 Only highlight scopes that have children 2011-04-26 01:56:51 +12:00
Jan Larres b374ff5eab Support jsctags and other compatible programs 2011-04-25 19:32:19 +12:00
Jan Larres b25ab098da Allow jumping to a tag definition without leaving the Tagbar window 2011-04-25 16:09:40 +12:00
Jan Larres 28dcb9d290 Add functionality to automatically open parents of tags in closed folds 2011-04-24 22:53:07 +12:00
Jan Larres c2ad337c01 Delete fileinfo when deleting buffer 2011-04-24 20:15:02 +12:00
Jan Larres 3fe80bfbd6 Add ability to jump to next/previous top-level tag, closes #9 2011-04-24 13:58:06 +12:00
Jan Larres ef7aa33d7b Document ways of automatically opening Tagbar 2011-04-24 01:03:21 +12:00
Jan Larres 5fee41a7e1 Small doc clarifications 2011-04-24 00:50:02 +12:00
Jan Larres 8b378af5db Document highlight customization 2011-04-23 23:15:24 +12:00
Jan Larres d27c8b96bb Document new folding features 2011-04-23 22:51:45 +12:00
Jan Larres fb1025dcbc Make highlight syntax definition configurable 2011-04-14 03:59:13 +12:00
Jan Larres 42a87ec2d7 Update credits 2011-04-14 00:32:14 +12:00
Jan Larres 5458369ec6 Don't use internal folding stuff outside of members 2011-04-12 23:36:48 +12:00
Jan Larres f4f1dcbe3b Change default highlight for fold icons to make the background colours match 2011-04-09 22:00:00 +12:00
Jan Larres 4d5b30b1ce Fix statusline bug when opening Tagbar without having a valid file loaded 2011-04-09 03:33:59 +12:00
Jan Larres 3e4bd07b48 Fix displaying the filename in the statusbar 2011-04-09 02:09:19 +12:00
Jan Larres 1cc96abced Get rid of some 'git d' in ':silent' to be able to see errors 2011-04-08 13:17:50 +12:00
Jan Larres 8fd7c138ca Delete empty lines into the black hole register to avoid clobbering others 2011-04-08 12:53:50 +12:00
Jan Larres c3f41cb2ab Remove superfluous output line 2011-04-08 03:39:58 +12:00
Jan Larres df31cc81cd Delete empty lines at the end of the tagbar buffer 2011-04-08 03:15:52 +12:00
Jan Larres c9b43b665a Fix file update bug 2011-04-08 03:12:00 +12:00
Jan Larres fe4acfb1fb Fix bug with files with empty filetype 2011-04-08 02:42:08 +12:00
Jan Larres d123a8346e Fix bug with displaying files that don't have scopes 2011-04-08 01:18:01 +12:00
Jan Larres d2a39abd61 Only consider the main filetype, closes #10 2011-04-08 01:09:15 +12:00
Jan Larres 140c7c84c8 Refactor into a more object-oriented style and make folding more vim-like 2011-04-08 01:00:12 +12:00
Seth Milliken 649eead502 added more vim-like bindings for folding
- added zo alias to OpenFold()
- added za alias to ToggleFold()
- added zc alias to CloseFold()
- added zC alias to CloseParent()
- added zn alias to SetFoldLevel(99, 1)
- added zR alias to SetFoldLevel(99, 1)
- added zM alias to SetFoldLevel(0, 1)
- changed z zoom shortcut to zz to avoid delay caused by presence of new z-prefix bindings
- update s:PrintHelp() to reflect new bindings
2011-03-29 20:35:56 -07:00
Jan Larres e36d947b57 Don't call AutoUpdate() with ':silent' so that 'echo's will be printed 2011-03-29 02:18:38 +13:00
Jan Larres c581d048ca Fix fold marker bug on windows 2011-03-29 02:16:48 +13:00
Jan Larres efcf31ba74 Handle cases where the ctags binary is installed in a directory with spaces 2011-03-28 23:52:05 +13:00
Jan Larres 276fa842dc Allow using other arrows on windows 2011-03-28 23:02:29 +13:00
Jan Larres 4b7aca60a7 Fix bug with balloonexpr 2011-03-28 17:18:24 +13:00
Jan Larres 15d82f669c Fix bug with user-defined types that don't specify folds 2011-03-28 17:08:14 +13:00
Jan Larres fbeea744d2 expand() ctags path in case it is installed in home dir 2011-03-28 12:34:41 +13:00
Jan Larres 0cb1f55f6a Fold vim maps by default 2011-03-28 02:48:21 +13:00
Jan Larres 3fdfe14ddb Check for termencoding just in case 2011-03-28 01:49:51 +13:00
Jan Larres d256c9976b Display nice unicode fold icons if possible 2011-03-28 01:29:25 +13:00
Jan Larres 0c39715fa7 Support using the mouse for opening/closing folds 2011-03-28 00:34:50 +13:00
Jan Larres 17064c6978 Make foldlevel work like the built-in version 2011-03-27 19:47:56 +13:00
Jan Larres 96165b138b Extract PrintKinds() function 2011-03-27 16:46:41 +13:00
Jan Larres 7182f9640e Implement proper folding support 2011-03-27 03:32:31 +13:00
Jan Larres 151832d234 Save the view when redisplaying the same file to avoid distracting jumps (idea taken from NERDTree) 2011-03-22 01:37:18 +13:00
Jan Larres 3cd371910a Consolidate some parameters in scope-processing functions 2011-03-21 03:02:03 +13:00
Jan Larres ef91922190 Check if mappings exist when opening window, closes #7 2011-03-18 01:53:08 +13:00
Jan Larres 70cfb974a9 Revert "use redraw! instead of redraw"
This reverts commit 208413677f.
2011-03-11 19:29:27 +13:00
Taybin Rutkin 208413677f use redraw! instead of redraw 2011-03-10 15:50:25 -05:00
Jan Larres 518b07de12 Version 1.5 2011-03-06 23:47:27 +13:00
Jan Larres a9c352c134 Ensure that as much content as possible is shown in the Tagbar window 2011-03-06 23:00:13 +13:00
Jan Larres b176c930d0 Get rid of unneeded type def field 'scopes' 2011-03-06 19:52:54 +13:00
Jan Larres e84bffb6df Allow for extra ctags definition files in type definitions 2011-03-06 19:12:21 +13:00
Taybin Rutkin 07997460d1 update documentation for tagbar_autofocus 2011-03-05 19:29:52 +13:00
Taybin Rutkin eb1ccae17e Add g:tagbar_autofocus option to always move cursor to tagbar window when it opens 2011-03-05 19:29:26 +13:00
Taybin Rutkin d86d93dbf1 remove redundant code 2011-03-05 19:25:47 +13:00
Jan Larres a532d7c445 Make sure the whole Tagbar content is shown if it is shorter than the window height 2011-03-04 02:59:40 +13:00
Jan Larres 38a6c9f6a1 Make sure jumps to the Tagbar window don't end up at the bottom after file loading 2011-03-04 02:58:48 +13:00
Jan Larres 82eebf945e Don't do any highlighting if there's no tag above the cursor 2011-03-02 23:31:58 +13:00
Jan Larres f847c4631b Add 'redraw' in some places since auto-redraw doesn't always work 2011-03-02 23:29:36 +13:00
Jan Larres 84121aac7d Version 1.2 2011-02-28 18:12:36 +13:00
Jan Larres be86180c88 Small optimization 2011-02-28 18:08:47 +13:00
Jan Larres 9eb5ff5e1f Fix typo in Ruby definition 2011-02-28 18:08:31 +13:00
Jan Larres c67610eba3 Add history entry for 1.1 2011-02-26 22:48:39 +13:00
Jan Larres 91deffb04d Version 1.1 2011-02-26 20:52:40 +13:00
Jan Larres 9ae8cfedd8 Allow expanding the vim window when opening Tagbar 2011-02-26 20:51:15 +13:00
Jan Larres a18be73b63 Fix syntax highlighting when :syntax enable is called 2011-02-26 19:59:28 +13:00
Jan Larres c6bbfcdba1 Version 1.0 2011-02-23 17:47:42 +13:00
Jan Larres d971024947 Change homepage 2011-02-20 11:04:09 +13:00
Jan Larres 65632006da Add README 2011-02-20 02:32:57 +13:00
Jan Larres efa19610f9 Small manual fix 2011-02-20 02:00:28 +13:00
Jan Larres 3b0bad1372 Finish manual except for release info 2011-02-20 01:37:09 +13:00
Jan Larres 060248aacb Small manual fixes 2011-02-19 23:12:48 +13:00
Jan Larres 78946a696a Expand manual 2011-02-19 22:59:44 +13:00
Jan Larres a92911fa18 Replace 'wincmd p' with explicit window numbers in a few locations 2011-02-19 17:50:29 +13:00
Jan Larres 342aece556 Don't do anything on OpenWindow() when in Tagbar window 2011-02-19 17:39:35 +13:00
Jan Larres d0d557bf5f Extract some one-time settings from OpenWindow() 2011-02-19 17:32:49 +13:00
Jan Larres 91076ee9d5 Let kind2scope and scope2kind be auto-generated from each other in user-defs 2011-02-19 17:12:47 +13:00
Jan Larres 1b5f3a4e84 Expand manual 2011-02-18 19:54:39 +13:00
Jan Larres d0b88b1f78 Fix requirement for ctags version 2011-02-18 01:04:27 +13:00
Jan Larres 300cd343ba Some auto-update improvements 2011-02-17 17:33:59 +13:00
Jan Larres 7808f0ec93 Manual 2011-02-17 01:19:24 +13:00
Jan Larres bbc5c1fa2d Manual fixes 2011-02-16 19:56:57 +13:00
Jan Larres d66169f2d6 Get rid of superflous check for system() 2011-02-15 19:18:09 +13:00
Jan Larres efe0cb3fdb Expand manual 2011-02-15 19:17:46 +13:00
Jan Larres 05eb38a018 Small manual fixes 2011-02-15 02:35:26 +13:00
Jan Larres 2431562c1c Preliminary version of manual 2011-02-15 01:06:39 +13:00
Jan Larres cc6a2958a1 Reorganize file structure 2011-02-14 23:47:18 +13:00
Jan Larres 4772da814a Provide command for autoclosing window regardless of global setting 2011-02-14 23:32:57 +13:00
Jan Larres 6cd89f58bd Don't fold comments 2011-02-14 22:10:30 +13:00
Jan Larres e053a24cfc Small misc stuff 2011-02-14 22:02:44 +13:00
Jan Larres 48704d10fa Make folding work 2011-02-14 20:48:24 +13:00
Jan Larres e22147a2d3 Allow setting sort mode per type 2011-02-14 17:37:34 +13:00
Jan Larres 7b558822a4 Ignore '~' prefix for C++ destructors when sorting 2011-02-14 16:28:56 +13:00
Jan Larres 47abcb82cf Add compact display mode 2011-02-14 16:11:59 +13:00
Jan Larres 6402fc98e8 Slight highlighting change 2011-02-13 19:25:02 +13:00
Jan Larres 762d5b9968 Rewrite the processing of scoped tags 2011-02-13 19:20:29 +13:00
Jan Larres 5f400b06b7 Make autocommand more readable 2011-02-09 18:31:36 +13:00
Jan Larres a21290dbdc Get rid of PrintWarningMsg() 2011-02-09 18:17:22 +13:00
Jan Larres cbb6a5f7ba Support user-defined types 2011-02-07 19:19:55 +13:00
Jan Larres 3639b9635a Tighten syntax highlighting a bit 2011-02-07 19:16:38 +13:00
Jan Larres 1900bf9da1 Add support for the rest of the languages 2011-02-07 17:59:07 +13:00
Jan Larres 7081192a8f Fix depth bug 2011-02-07 17:58:33 +13:00
Jan Larres b4b8eef2b0 Small pseudo-tag bugfix 2011-02-06 23:09:34 +13:00
Jan Larres 6bad51de6a Cache depth in tags 2011-02-06 21:22:56 +13:00
Jan Larres 5c06c683d3 Add support for more languages 2011-02-05 19:33:18 +13:00
Jan Larres 172afabdb7 Handle ctags failures gracefully 2011-02-05 19:32:49 +13:00
Jan Larres 522a158956 Fix case bug 2011-02-05 19:30:03 +13:00
Jan Larres d9c0b8b2d4 Add Erlang support 2011-02-04 18:29:34 +13:00
Jan Larres f8b49b2f20 Mark current position before jumping to it 2011-02-01 15:28:48 +13:00
Jan Larres 053466b5a6 Display some useful info in the statusline 2011-01-27 21:04:21 +13:00
Jan Larres fab8af715c Add support for more languages 2011-01-26 19:17:09 +13:00
Jan Larres eb96cd87f1 Add support for Asm 2011-01-25 20:12:57 +13:00
Jan Larres a8d29ed5d1 Add support for Ant 2011-01-25 19:32:30 +13:00
Jan Larres 23ea6d0011 Support C 2011-01-24 23:23:40 +13:00
Jan Larres 1521c90fc3 Switch to marker folding 2011-01-24 22:37:52 +13:00
Jan Larres cd17c19dea Small syntax fix 2011-01-24 22:10:40 +13:00
Jan Larres 9f3e5f6ccb Don't highlight access symbols 2011-01-24 21:27:35 +13:00
Jan Larres ce001d55f4 Fix bug with prototype recognition 2011-01-24 20:14:28 +13:00
Jan Larres f17f1faa1f Fix some parsing bugs and add Java support 2011-01-24 19:48:58 +13:00
Jan Larres 310435b009 Support access/visibility prefix 2011-01-23 18:10:50 +13:00
Jan Larres 0d96623015 Only do type initialization once the tagbar is opened for the first time 2011-01-23 16:47:44 +13:00
Jan Larres 1537287fce If autoclose is set jump to the tagbar window on open 2011-01-23 16:40:14 +13:00
Jan Larres f15d130c3a Speed up child processing by separating scoped from non-scoped tags 2011-01-23 15:09:08 +13:00
Jan Larres 2fd950e96d Cache some information to make filtering faster 2011-01-23 02:22:20 +13:00
Jan Larres 39beb53fc1 Pseudo-tag fixes. Sigh. 2011-01-22 22:16:49 +13:00
Jan Larres 7bae0c5a69 Display some help 2011-01-22 00:27:50 +13:00
Jan Larres d615d070c0 Comment for last fix 2011-01-21 22:29:48 +13:00
Jan Larres 8e4101b990 Fix small highlighting bug 2011-01-21 21:16:46 +13:00
Jan Larres ca7307be6b *Really* support nested pseudo-tags 2011-01-21 20:11:15 +13:00
Jan Larres d235ec6dfb Support some more C++ scopes 2011-01-21 01:38:14 +13:00
Jan Larres 8e6d6355d0 Small reformattings 2011-01-20 22:18:33 +13:00
Jan Larres 8d72cedc41 Allow zooming the window 2011-01-20 21:20:29 +13:00
Jan Larres a5fd8d2c75 Allow closing the window with 'q' 2011-01-20 21:13:00 +13:00
Jan Larres 0b6ce07d78 Show prototype with <space> and balloon 2011-01-20 21:03:56 +13:00
Jan Larres 8aadfd19d3 Allow jumping to a tag definition from the tagbar window 2011-01-20 20:16:58 +13:00
Jan Larres d94b7ad66f Allow toggling the sort method 2011-01-20 18:16:57 +13:00
Jan Larres e7d50d3800 Fix sorting bug 2011-01-20 17:11:27 +13:00
Jan Larres ebf1d4b2e1 Add syntax highlighting 2011-01-20 16:51:50 +13:00
Jan Larres 19dee23d8d Add highlighting function and rearrange update method 2011-01-20 16:51:33 +13:00
Jan Larres 7247c1edb7 Add some comments 2011-01-20 16:47:29 +13:00
Jan Larres 58b13eaaa9 Make ctags_args more readable 2011-01-19 18:44:08 +13:00
Jan Larres 7ac78715b2 Consolidate sorting 2011-01-19 17:36:10 +13:00
Jan Larres 3fab2ae0dd Support nesting pseudo-tags 2011-01-19 17:19:15 +13:00
Jan Larres 597a0f4940 Fix some compatibility bugs 2011-01-18 15:03:27 +13:00
Jan Larres 040d1b99e7 Small cleanups. 2011-01-17 23:40:50 +13:00
Jan Larres ba24621296 Support non-nesting pseudo-tags. 2011-01-17 22:58:31 +13:00
Jan Larres e5e761b64a Fix compare bug. 2011-01-17 17:09:55 +13:00
Jan Larres dda2103363 Allow sorting the tags by name or line (unsorted). 2011-01-17 17:08:10 +13:00
Jan Larres 90f6a780e8 Print top-level tags in the specified order. 2011-01-17 15:54:12 +13:00
Jan Larres 00dc87f351 Simplify top level scope detection. 2011-01-17 03:19:11 +13:00
Jan Larres a832db8b47 Use proper ctags binary name on Debian-like systems. 2011-01-17 00:41:41 +13:00
Jan Larres 32d42f5d47 Process scopes only when the file has changed. 2011-01-17 00:35:05 +13:00
Jan Larres d250f26798 Clear buffer for unsupported files. 2011-01-16 22:02:52 +13:00
Jan Larres 04ad66a70e Rough support for nested scopes. 2011-01-16 17:46:14 +13:00
Jan Larres dfce41715b Keep old alternate file when opening tagbar window. 2011-01-15 19:22:56 +13:00
Jan Larres 8b2fd1c849 Simple scope support. 2011-01-14 23:12:26 +13:00
Jan Larres 5f5e5e1b70 prepare autoclose functionality 2011-01-12 23:30:38 +13:00
Jan Larres db3e802912 primitive version with c++ support 2011-01-12 22:48:04 +13:00
Jan Larres 6c0f348ad1 Initial commit 2011-01-11 22:36:49 +13:00
29 changed files with 4310 additions and 464 deletions
+4
View File
@@ -0,0 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
README export-ignore
.info export-ignore
+1 -1
View File
@@ -1 +1 @@
_site/
/doc/tags
+2
View File
@@ -0,0 +1,2 @@
tagbar
3465
+7
View File
@@ -0,0 +1,7 @@
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.com/tagbar/ for more
information.
-2
View File
@@ -1,2 +0,0 @@
markdown: rdiscount
highlighter: pygments
-7
View File
@@ -1,7 +0,0 @@
<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
@@ -1,80 +0,0 @@
<!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
@@ -1,5 +0,0 @@
---
title: 1.0
---
- Initial release
-6
View File
@@ -1,6 +0,0 @@
---
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
@@ -1,5 +0,0 @@
---
title: 1.2
---
- Fix typo in Ruby definition
-14
View File
@@ -1,14 +0,0 @@
---
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
@@ -1,5 +0,0 @@
---
title: 2.0.1
---
- Fixed sorting bug when 'ignorecase' is set
-14
View File
@@ -1,14 +0,0 @@
---
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
@@ -1,18 +0,0 @@
---
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
@@ -1,19 +0,0 @@
---
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
@@ -1,12 +0,0 @@
---
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
@@ -1,11 +0,0 @@
---
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
@@ -1,10 +0,0 @@
---
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
@@ -1,28 +0,0 @@
---
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
@@ -1,16 +0,0 @@
---
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
@@ -1,9 +0,0 @@
---
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
@@ -1,22 +0,0 @@
---
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>
+3099
View File
File diff suppressed because it is too large Load Diff
-70
View File
@@ -1,70 +0,0 @@
.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 */
+1016
View File
File diff suppressed because it is too large Load Diff
-77
View File
@@ -1,77 +0,0 @@
---
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>
+118
View File
@@ -0,0 +1,118 @@
" ============================================================================
" 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.3
" 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
if !exists('g:tagbar_left')
let g:tagbar_left = 0
endif
if !exists('g:tagbar_width')
let g:tagbar_width = 40
endif
if !exists('g:tagbar_autoclose')
let g:tagbar_autoclose = 0
endif
if !exists('g:tagbar_autofocus')
let g:tagbar_autofocus = 0
endif
if !exists('g:tagbar_sort')
let g:tagbar_sort = 1
endif
if !exists('g:tagbar_compact')
let g:tagbar_compact = 0
endif
if !exists('g:tagbar_expand')
let g:tagbar_expand = 0
endif
if !exists('g:tagbar_singleclick')
let g:tagbar_singleclick = 0
endif
if !exists('g:tagbar_foldlevel')
let g:tagbar_foldlevel = 99
endif
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
if !exists('g:tagbar_autoshowtag')
let g:tagbar_autoshowtag = 0
endif
if !exists('g:tagbar_updateonsave_maxlines')
let g:tagbar_updateonsave_maxlines = 5000
endif
if !exists('g:tagbar_systemenc')
let g:tagbar_systemenc = &encoding
endif
augroup TagbarSession
autocmd!
autocmd SessionLoadPost * nested call tagbar#RestoreSession()
augroup END
" Commands {{{1
command! -nargs=0 TagbarToggle call tagbar#ToggleWindow()
command! -nargs=? TagbarOpen call tagbar#OpenWindow(<f-args>)
command! -nargs=0 TagbarOpenAutoClose call tagbar#OpenWindow('fc')
command! -nargs=0 TagbarClose call tagbar#CloseWindow()
command! -nargs=1 TagbarSetFoldlevel call tagbar#SetFoldLevel(<args>)
command! -nargs=0 TagbarShowTag call tagbar#OpenParents()
command! -nargs=? TagbarDebug call tagbar#StartDebug(<f-args>)
command! -nargs=0 TagbarDebugEnd call tagbar#StopDebug()
" Modeline {{{1
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1
+63
View File
@@ -0,0 +1,63 @@
" File: tagbar.vim
" Description: Tagbar syntax settings
" Author: Jan Larres <jan@majutsushi.net>
" Licence: Vim licence
" Website: http://majutsushi.github.com/tagbar/
" Version: 2.3
scriptencoding utf-8
if exists("b:current_syntax")
finish
endif
let s:ic = g:tagbar_iconchars[0]
if s:ic =~ '[]^\\-]'
let s:ic = '\' . s:ic
endif
let s:io = g:tagbar_iconchars[1]
if s:io =~ '[]^\\-]'
let s:io = '\' . s:io
endif
let s:pattern = '\([' . s:ic . s:io . '] \)\@<=[^-+: ]\+[^:]\+$'
execute "syntax match TagbarKind '" . s:pattern . "'"
let s:pattern = '\([' . s:ic . s:io . '][-+# ]\)\@<=[^*]\+\(\*\?\(([^)]\+)\)\? :\)\@='
execute "syntax match TagbarScope '" . s:pattern . "'"
let s:pattern = '[' . s:ic . s:io . ']\([-+# ]\)\@='
execute "syntax match TagbarFoldIcon '" . s:pattern . "'"
let s:pattern = '\([' . s:ic . s:io . ' ]\)\@<=+\([^-+# ]\)\@='
execute "syntax match TagbarAccessPublic '" . s:pattern . "'"
let s:pattern = '\([' . s:ic . s:io . ' ]\)\@<=#\([^-+# ]\)\@='
execute "syntax match TagbarAccessProtected '" . s:pattern . "'"
let s:pattern = '\([' . s:ic . s:io . ' ]\)\@<=-\([^-+# ]\)\@='
execute "syntax match TagbarAccessPrivate '" . s:pattern . "'"
unlet s:pattern
syntax match TagbarNestedKind '^\s\+\[[^]]\+\]$'
syntax match TagbarComment '^".*'
syntax match TagbarType ' : \zs.*'
syntax match TagbarSignature '(.*)'
syntax match TagbarPseudoID '\*\ze :'
highlight default link TagbarComment Comment
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
let b:current_syntax = "tagbar"
" vim: ts=8 sw=4 sts=4 et foldenable foldmethod=marker foldcolumn=1
-33
View File
@@ -1,33 +0,0 @@
#!/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))