1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-04-20 21:21:29 +02:00
Commit Graph

159 Commits

Author SHA1 Message Date
Caleb Maclennan 30fb229937 Update URLs to reflect repository migration (Closes #651) 2020-09-13 10:22:09 +03:00
raven42 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
raven42 40413d8760 Add user facing function to get tag near line number (#643) 2020-08-26 12:18:05 +03:00
raven42 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
Aaron Toderash 56399f446c Document extra languages supported by universal-ctags (#621)
Co-authored-by: Caleb Maclennan <caleb@alerque.com>
2020-06-12 00:04:31 +03:00
Caleb Maclennan 92752b89ce Add option to disable use of tmp file cache 2020-05-29 21:02:31 +03:00
gryf d864a44a3d Additional function for displaying type of a current tag.
Introducing small function for displaying type (kind) of a current tag.
Useful for putting it in the status bar.
2020-01-17 10:26:47 +01:00
zhmars 86ab45aba7 Fix document syntax highlight (#587) 2020-01-16 11:41:04 +02:00
mars 524aa93372 Add g:tagbar_show_balloon option 2020-01-03 10:53:56 +03:00
Caleb Maclennan bd810fd1a6 Merge pull request #502 from chocoladisco/master
fixed the deprecated --extra to --extras
2019-10-21 19:38:27 +03:00
Caleb Maclennan a8e050f448 Merge pull request #493 from fievel/master 2019-10-21 19:37:10 +03:00
Caleb Maclennan 3b7d19e0a1 Merge pull request #476 from goerz/ctags_options
Add g:tagbar_ctags_options
2019-10-21 18:40:26 +03:00
chocoladisco db1b710289 fixed the deprecated --extra to --extras 2018-08-15 13:34:35 +02:00
fievel 44f114a7cb Add map to allow pausing/unpausing tagbar 2018-06-15 10:27:33 +02:00
Michael Goerz 9c60e7f6c6 Accept a list, allowing 'NONE' to avoid duplicates 2018-02-03 20:14:37 -05:00
Michael Goerz df960e8b9c Add g:tagbar_ctags_options 2018-02-03 17:54:44 -05:00
Daniel Hahler b8065cfee4 Add tagbar#StopAutoUpdate
This is useful to stop updating information, after using
`tagbar#currenttag` manually/temporarily only.
2018-01-11 17:13:51 +01:00
Jan Larres 3e417256e8 Clarify project-specific behaviour a bit in docs 2017-09-13 17:59:35 +12:00
AdnoC e3732091bf Add ability to open or close folds a single level 2017-07-26 10:18:18 -04:00
Jan Larres aab5f214c5 Save ctags output in separate file when debugging 2017-02-11 17:40:24 +13:00
Jan Larres 53e9cb030e Version 2.7 2017-01-09 17:26:17 +13:00
Jan Larres 3a4ea1234f Clarify debug procedure in docs 2016-12-24 16:46:53 +13:00
Anmol Sethi 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
Jan Larres d81333e055 Merge pull request #315 from niloct/master
Fixed sentence about pseudo-tags
2016-10-10 22:20:34 +13:00
Martin Vuille 7fbd1ad375 Add case-insensitive sort option 2016-08-27 18:14:10 -04:00
Nilo César Teixeira 931cb37e6b Fixed sentence about pseudo-tags 2016-03-16 20:30:34 -03:00
Jan Larres 7b36c46d17 Change mentions of GNU ctags to BSD ctags 2015-06-19 11:42:35 +12:00
Jan Larres 1773059756 Mention :messages command in troubleshooting section 2015-04-05 18:56:08 +12:00
Jan Larres 3634e7ab4f Support 'kind' field with name, ref #254 2015-03-17 19:35:42 +13:00
Jan Larres a084e47eb4 Rephrase compatible programs a bit 2014-11-10 12:03:43 +13:00
Jan Larres df09799372 Add mappings for moving through folds, closes #224 2014-11-09 17:33:42 +13:00
Jan Larres f933907afa Add option to arrange Tagbar window vertically 2014-11-08 21:30:17 +13:00
Jan Larres e1eec86934 Small doc fix 2014-10-27 22:39:31 +13:00
Jan Larres 4e5e0ebe59 Small doc improvement for pause, closes #199 2014-10-11 17:11:55 +13:00
Jan Larres 9ee516ee6f Fix typo 2014-08-23 19:44:45 +12:00
Jan Larres 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
Jan Larres 87d0111bd3 Clarify debug instructions 2014-04-04 18:54:13 +13:00
Jan Larres c251265edf Document common way to run debug command 2014-03-18 19:03:49 +13:00
Jan Larres fdceb4ea71 Add ? as help key, closes #194 2014-02-28 13:51:48 +13:00
Jan Larres 614b5b244f Change default hide_nonpublic mapping 2014-02-10 17:25:32 +13:00
Jan Larres 3fdefbaa47 Add documentation for hide_nonpublic
Also indicate in the statusline if non-public tags are currently hidden.
2014-02-10 17:10:43 +13:00
Jan Larres 42ce2919a3 Allow configuring zoom, closes #189 2014-02-04 18:00:27 +13:00
Jan Larres e872e67641 Version 2.6.1 2014-01-23 23:17:00 +13:00
Jan Larres 88d7464079 Close prevwin when jumping to tag, closes #184 2013-12-19 11:54:59 +13:00
Jan Larres dbc05b24a3 Fix getCurrent() call for kind headers, closes #185 2013-12-09 16:30:38 +13:00
Jan Larres 6d8770f949 Version 2.6 2013-12-06 00:27:08 +13:00
Jan Larres c4963e91cc Update credits 2013-12-06 00:26:00 +13:00
Jan Larres 3f28e3b073 Add a note about autocmd timing, closes #180 2013-11-22 17:19:14 +13:00
Jan Larres f3250b2dd1 Make preview window position configurable 2013-11-13 16:29:42 +13:00
Jan Larres 0377f19d74 Add auto-previewing mode, closes #161 2013-11-11 18:23:22 +13:00