mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-05-04 04:25:47 +08:00
tabpanel: Add support for clickable tabpanel and scrollbar (#2749)
Requires Vim v9.2.0386 and v9.2.0360 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
GitHub
parent
da47577aa8
commit
a29ae5be6f
@@ -1485,12 +1485,27 @@ Vim >9.1.1391).
|
||||
let g:airline#extensions#tabpanel#align = 'left'
|
||||
< default: '' (uses Vim's default)
|
||||
|
||||
* enable mouse wheel scrolling over the tabpanel area when the tab list
|
||||
exceeds the visible screen height (requires Vim patch 9.2.386) >
|
||||
let g:airline#extensions#tabpanel#scroll = 1
|
||||
< default: 0
|
||||
|
||||
* reserve a one-column scrollbar in the tabpanel showing the current scroll
|
||||
position; clicking or dragging the thumb jumps to that position (requires
|
||||
Vim patch 9.2.386; implies scroll) >
|
||||
let g:airline#extensions#tabpanel#scrollbar = 1
|
||||
< default: 0
|
||||
|
||||
Note: The tabpanel extension reuses the tabline highlight groups
|
||||
(|airline-tabline-hlgroups|) and respects the tabline tab number settings
|
||||
(|g:airline#extensions#tabline#show_tab_nr|,
|
||||
|g:airline#extensions#tabline#tab_nr_type|,
|
||||
|g:airline#extensions#tabline#tabnr_formatter|).
|
||||
|
||||
Note: Starting with Vim v9.2.0386 Vim adds mouse support for the tabpanel
|
||||
and each tab entry is clickable: a left mouse click switches to the tab and a
|
||||
middle click closes it, however 'mouse' setting needs to be enabled.
|
||||
|
||||
------------------------------------- *airline-scrollbar*
|
||||
|
||||
Displays an Ascii Scrollbar for active windows with a width > 200.
|
||||
|
||||
Reference in New Issue
Block a user