Commit Graph

224 Commits

Author SHA1 Message Date
9e2e5d93b4 Merge branch 'master' into large-file-handling 2020-09-23 11:47:24 -05:00
64730d27a9 Added fsize calculation in fileinfo so better tracking can be used to display in tagbar window 2020-09-23 11:45:02 -05:00
5339b4e8bd Add g:tagbar_scopestrs (#661)
Allows mapping scope suffixes (e.g. 'function') to user-defined values.
2020-09-23 13:02:34 +03:00
22df1b87af Fix for #647: Add g:tagbar_wrap option 2020-09-21 08:24:01 -05:00
be67ff7ae7 Add option to not trigger update on large files 2020-09-14 15:15:39 -05:00
30fb229937 Update URLs to reflect repository migration (Closes #651) 2020-09-13 10:22:09 +03:00
e1c2c98922 Fixes #650 Correct window positioning defaults (#652)
* Fix for window positioning
With default case having multiple vertically split windows, the tagbar
window should open on the far right of the screen. When the feature in
pull-request 630 was added, this behavior changed to open the tagbar
window relative to the current window. This commit will fix that by
allowing direct usage of the vim split options.

Validated the following cases for the old default values. These all
still behave the same way as prior to pull-request 630 when the tagbar
is activated in the `active` window shown in the below examples:
```
	" No options
	+-----------------------------------+
	| preview                           |
	+--------+--------+--------+--------+
	| edit   | edit   | edit   | tagbar |
	|        | active |        |        |
	+--------+--------+--------+--------+

	" tagbar on left, preview above
	let g:tagbar_left = 1
	+-----------------------------------+
	| preview                           |
	+--------+--------+--------+--------+
	| tagbar | edit   | edit   | edit   |
	|        |        | active |        |
	+--------+--------+--------+--------+

	" tagbar on bottom, preview to right of tagbar
	let g:tagbar_vertical = 10
	+--------+---------------+--------+
	| edit   | edit          | edit   |
	|        | active        |        |
	|        +-----+---------+        |
	|        | tag | preview |        |
	+--------+-----+---------+--------+

	" tagbar on top, preview to the right of tagbar
	let g:tagbar_left = 1
	let g:tagbar_vertical = 10
	+--------+-----+---------+--------+
	| edit   | tag | preview | edit   |
	|        +-----+---------+        |
	|        | edit          |        |
	|        | active        |        |
	+--------+---------------+--------+

```

New values also all validated using the following:
```
" Behaves the same as no options
let g:tagbar_position = 'right'

" Behaves the same as g:tagbar_left = 1
let g:tagbar_position = 'left'

" Behaves the same as g:tagbar_vertical = <#>
let g:tagbar_position = 'bottom'

" Behaves the same as g:tagbar_left = 1 | g:tagbar_vertical = <#>
let g:tagbar_position = 'top'
```

* #650 - Fix typo in doc/tagbar.txt for g:tagbar_height option
2020-09-01 16:59:16 +03:00
5bb0ef3576 Add more flexible options for window positioning (#630)
New configuration option for g:tagbar_position that will supercede g:tagbar_left. This option allows for new values for 'top', 'bottom', 'left' and 'right' (default:'right') to position the Tagbar window.

New configuration option for g:tagbar_height that will supercede g:tagbar_vertical. This option is used to set the Tagbar window height when the window is split using the 'top' or 'bottom' position.

New configuration option for g:tagbar_no_status_line. This option will disable any Tagbar status line updates in the event another plugin is controlling the status line. This prevents Tagbar from changing the status line when Tagbar is not the active window.

Co-authored-by: David Hegland <david.hegland@broadcom.com>
2020-07-29 21:18:17 +03:00
92752b89ce Add option to disable use of tmp file cache 2020-05-29 21:02:31 +03:00
524aa93372 Add g:tagbar_show_balloon option 2020-01-03 10:53:56 +03:00
3c4c8af4b4 Test whether &termencoding even exists before use
Fixes #574

See also:

* https://github.com/neovim/neovim/pull/2631
* https://github.com/neovim/neovim/issues/7445
* ac360bf2ca
2020-01-02 08:01:14 +03:00
b607006c56 Fix syntax issues that are lint warnings 2019-10-22 17:53:08 +03:00
44f114a7cb Add map to allow pausing/unpausing tagbar 2018-06-15 10:27:33 +02:00
877a4a939c Extract debug functionality into separate file 2017-08-20 17:02:36 +12:00
e3732091bf Add ability to open or close folds a single level 2017-07-26 10:18:18 -04:00
53e9cb030e Version 2.7 2017-01-09 17:26:17 +13:00
b99e103258 Silent option
If the silent option is set, tagbar doesn't echo out information about
the tag the cursor is on in the tagbar window.
2016-10-19 12:58:40 +13:00
7fbd1ad375 Add case-insensitive sort option 2016-08-27 18:14:10 -04:00
bfc121dc38 Setup options and keymaps in functions to avoid global variables 2014-12-10 16:19:14 +13:00
df09799372 Add mappings for moving through folds, closes #224 2014-11-09 17:33:42 +13:00
f933907afa Add option to arrange Tagbar window vertically 2014-11-08 21:30:17 +13:00
ca1c9ee2e2 Add mapping to toggle autoclose option
The current tagbar_autoclose state will be displayed in the statusline.
Also change the "hide nonpublic" flag to "v" to match the mapping and
properly document the statusline flags.
2014-06-25 17:52:43 +12:00
fdceb4ea71 Add ? as help key, closes #194 2014-02-28 13:51:48 +13:00
614b5b244f Change default hide_nonpublic mapping 2014-02-10 17:25:32 +13:00
368d37ed45 Allow hiding non-public tags, closes #186 2014-02-05 18:08:04 +13:00
42ce2919a3 Allow configuring zoom, closes #189 2014-02-04 18:00:27 +13:00
e872e67641 Version 2.6.1 2014-01-23 23:17:00 +13:00
6d8770f949 Version 2.6 2013-12-06 00:27:08 +13:00
f3250b2dd1 Make preview window position configurable 2013-11-13 16:29:42 +13:00
0377f19d74 Add auto-previewing mode, closes #161 2013-11-11 18:23:22 +13:00
78a7eeecf3 Add key to show tag in preview window 2013-11-11 00:53:45 +13:00
1a2c4ec958 Rework pause functionality, closes #177
The current pause functionality simply removes all the autocommands to
stop updating Tagbar. This has the problem that at the moment the
statusline functions immediately restore the commands so pausing doesn't
work, but even if that didn't happen it would stop the statusline
functionality from working which is not desirable. The solution is to
have a reference to the paused file which will get used by the Tagbar
window, but not the statusline functions.
2013-11-06 22:33:27 +13:00
24efd12f50 Add option to show line numbers, closes #146 2013-08-24 21:45:10 +12:00
c37d783d4f Make keybindings configurable, closes #159 2013-08-22 17:38:31 +12:00
e97d2c00ad Simplify option initialization 2013-08-22 13:16:46 +12:00
dacf4f273e Add Tagbar command as alias for TagbarToggle, closes #151 2013-06-25 18:12:25 +12:00
dec1f840fb Version 2.5 2013-03-25 22:27:12 +13:00
7d836e0c53 Make visibility symbols optional 2012-11-22 18:42:14 +13:00
15eddce14f Updates to TagbarTogglePause
Changes requested by majutsushi.

Changed function to :TagbarTogglePause
Added documentation for function, including usage and defintion.
Changed autocommands_enable to autocommands_enabled.
2012-11-01 14:36:45 +00:00
e88b81c4f5 Merge branch 'master' of github.com:kianryan/tagbar 2012-10-01 14:24:46 +01:00
19695b87b0 Pause autocmd functionality with :TagbarPause
tagbar#PauseAutocommands :TagbarPause

:TagbarPause pauses autocmds, effectively freezing Tagbar on the last
file.  Useful for keeping a tag reference for a file open whilst working
in a different file.
2012-10-01 14:22:35 +01:00
568ef5fd25 Make the indent configurable, closes #110 2012-10-01 22:59:53 +13:00
cd0e20f93b Add TagbarCurrentTag command, closes #109 2012-09-15 17:03:43 +12:00
ee700817d5 Fix some TagbarShowTag bugs, closes #108 2012-09-15 16:49:28 +12:00
f3c1a93017 Make 'open' commands a bit more intuitive 2012-07-31 16:42:18 +12:00
e690a5e97d Cache files locally for parsing
Files are now cached locally in a temporary file, and the parsing
happens on that file. This allows displaying tags for remote (Netrw)
files, and it will also make access to files on remote filesystems like
NFS and sshfs faster.

Additionally, tags are now always updated when the files are saved,
deprecating the tagbar_updateonsave_maxlines option. Otherwise checking
for changes in remote files would not have been possible.
2012-07-22 21:49:17 +12:00
6a7f155874 Version 2.4.1 2012-07-16 21:38:20 +12:00
5ee3143b5a Version 2.4 2012-06-17 21:19:42 +12:00
c5f91a5b76 Add command for easy type customization 2012-06-16 21:46:54 +12:00
86b49e6949 Make SetFoldlevel respect default-closed folds without '!', closes #61 2012-03-14 22:42:59 +13:00