Skip to content

Commit e82bebe

Browse files
authored
Merge pull request #2604 from h-east/update-tabpage
Update tabpage.{txt,jax}
2 parents 1354c2f + b7741c8 commit e82bebe

2 files changed

Lines changed: 51 additions & 42 deletions

File tree

doc/tabpage.jax

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tabpage.txt* For Vim バージョン 9.2. Last change: 2026 Apr 25
1+
*tabpage.txt* For Vim バージョン 9.2. Last change: 2026 Apr 28
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -483,36 +483,40 @@ GUI のタブページラインにはポップアップメニューがありま
483483
ハイライトグループを使用して、タブページラベルの外観をカスタマイズできます:
484484
|hl-TabPanel| |hl-TabPanelSel| |hl-TabPanelFill|
485485

486-
タブパネルのスクロール: *tabpanel-scroll*
486+
タブパネルのスクロール *tabpanel-scroll*
487487

488-
タブページのリストの合計高さが画面の表示高さを超えると、タブパネルはデフォルト
489-
でカレントタブページを含む "ページ" を表示し、そのページ以外のタブページを表示
490-
する方法は提供しない。
488+
タブページのリストの総高さが画面表示の高さを超えると、タブパネル領域内でのマウ
489+
スホイールイベントによってタブページのリストが上下にスクロールする。スクロール
490+
のステップ数は 'mousescroll' 設定に従う。タブパネル領域内でのホイールイベント
491+
はタブパネルによって消費され、|<ScrollWheelUp>| または |<ScrollWheelDown>|
492+
マッピングはトリガーされない。
491493

492-
タブパネルをスクロール可能にするには、'tabpanelopt' に "scroll" を追加する: >
493-
:set tabpanelopt+=scroll
494+
カレントタブページは常に表示される。選択されたタブページが変更されると
495+
(|gt||gT||:tabnext| など)、パネルがスクロールして現在のエントリが表示され
496+
る。
494497

495-
"scroll" が有効になっている場合、タブパネル領域上でのマウスホイールイベントは、
496-
タブページのリストを上下にスクロールする。スクロール動作は 'mousescroll' 設定
497-
に従う。
498-
タブパネル領域内でのホイールイベントはタブパネルによって処理され、
499-
|<ScrollWheelUp>| または |<ScrollWheelDown>| のマッピングはトリガーされない。
500-
501-
スクロール位置を示す垂直スクロールバーを追加するには、"scrollbar" を使用する: >
498+
現在のスクロール位置を示す垂直スクロールバーを表示するには、'tabpanelopt'
499+
"scrollbar" を追加する: >
502500
:set tabpanelopt+=scrollbar
503501
504-
"scrollbar" の値は "scroll" の意味を含む。タブパネルの端に 1 列のスクロールバー
505-
が確保される。スクロールバーの列をクリックすると、サム (thumb) がクリック位置
502+
タブパネルの右端には、'tabpanelopt' の "align:" 設定に関係なく常に 1 列のスク
503+
ロールバーが表示される。スクロールバーの列をクリックすると、サムがクリック位置
506504
に移動し、サムをドラッグすることで連続的にスクロールできる。
507505

508-
"vert" と "scrollbar" を組み合わせると、スクロールバーはパネル側の垂直セパレー
509-
ターの横に描画される。
510-
511506
スクロールバーは、トラックに |hl-PmenuSbar| ハイライトグループを、サムに
512507
|hl-PmenuThumb| を使用する。
513508

514-
スクロールのオフセットは再描画後も保持さるが、 "scroll" または "scrollbar" を
515-
オフにしてから再びオンにするとリセットされる。
509+
スクロールオフセットは再描画後も保持される。
510+
511+
☆タブパネル内でのマウスクリック *tabpanel-mouse*
512+
513+
タブパネルの行を左クリックすると、その行に対応するタブページが選択される。タブ
514+
ラインとは異なり、タブパネルでダブルクリックしても新しい空のタブページは開かれ
515+
ず、シングルクリックと同じように扱われる。
516+
517+
より詳細な制御を行うために、'tabpanel' の値には、|stl-%[FuncName]| クリック領
518+
域を含めることができる。これらの領域のクリックは、タブ選択にフォールスルーする
519+
代わりに、コールバック関数に処理が渡される。
516520

517521
==============================================================================
518522
6. 'guitablabel' の設定 *setting-guitablabel*

en/tabpage.txt

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tabpage.txt* For Vim version 9.2. Last change: 2026 Apr 25
1+
*tabpage.txt* For Vim version 9.2. Last change: 2026 Apr 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -482,36 +482,41 @@ The vertical separator character is taken from "tpl_vert" in 'fillchars'.
482482
You can customize the appearance of the tab page labels using the highlight
483483
groups: |hl-TabPanel| |hl-TabPanelSel| |hl-TabPanelFill|
484484

485-
SCROLLING IN THE TABPANEL: *tabpanel-scroll*
485+
SCROLLING IN THE TABPANEL *tabpanel-scroll*
486486

487487
When the total height of the tab page list exceeds the visible screen height,
488-
the tabpanel by default displays the "page" that contains the current tab page
489-
and offers no way to view tab pages outside that page.
488+
mouse wheel events over the tabpanel area scroll the tab page list up or down.
489+
The scroll step follows the 'mousescroll' setting. Wheel events inside the
490+
tabpanel area are consumed by the tabpanel and do not trigger
491+
|<ScrollWheelUp>| or |<ScrollWheelDown>| mappings.
490492

491-
To make the tabpanel scrollable, add "scroll" to 'tabpanelopt': >
492-
:set tabpanelopt+=scroll
493+
The current tab page is always brought into view: when the selected tab page
494+
changes (by |gt|, |gT|, |:tabnext| etc.), the panel scrolls so the current
495+
entry is visible.
493496

494-
With "scroll" enabled, mouse wheel events over the tabpanel area scroll the
495-
tab page list up or down. The scroll step follows the 'mousescroll' setting.
496-
Wheel events inside the tabpanel area are consumed by the tabpanel and do not
497-
trigger |<ScrollWheelUp>| or |<ScrollWheelDown>| mappings.
498-
499-
To additionally show a vertical scrollbar indicating the current scroll
500-
position, use "scrollbar": >
497+
To show a vertical scrollbar indicating the current scroll position, add
498+
"scrollbar" to 'tabpanelopt': >
501499
:set tabpanelopt+=scrollbar
502500
503-
The "scrollbar" value implies "scroll". A one-column scrollbar is reserved at
504-
the edge of the tabpanel; clicking on the scrollbar column moves the thumb to
505-
the click position, and the thumb can be dragged to scroll continuously.
506-
507-
When "vert" is combined with "scrollbar", the scrollbar is drawn next to the
508-
vertical separator, on the panel side.
501+
A one-column scrollbar is always displayed at the right edge of the tabpanel,
502+
regardless of the "align:" setting in 'tabpanelopt'. Clicking on the
503+
scrollbar column moves the thumb to the click position, and the thumb can be
504+
dragged to scroll continuously.
509505

510506
The scrollbar uses the |hl-PmenuSbar| highlight group for the track and
511507
|hl-PmenuThumb| for the thumb.
512508

513-
The scroll offset is remembered across redraws but is reset when "scroll" or
514-
"scrollbar" is toggled off and back on.
509+
The scroll offset is remembered across redraws.
510+
511+
MOUSE CLICKS IN THE TABPANEL *tabpanel-mouse*
512+
513+
A left click on a row in the tabpanel selects the tab page that the row
514+
belongs to. Unlike the tabline, a double click in the tabpanel does not open
515+
a new, empty tab page; it is treated the same as a single click.
516+
517+
For finer-grained control, the 'tabpanel' value may contain |stl-%[FuncName]|
518+
click regions. Clicks on those regions are dispatched to the callback
519+
function instead of falling through to tab selection.
515520

516521
==============================================================================
517522
6. Setting 'guitablabel' *setting-guitablabel*

0 commit comments

Comments
 (0)