-
Notifications
You must be signed in to change notification settings - Fork 65
Update tabpage.{txt,jax} #2094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update tabpage.{txt,jax} #2094
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*tabpage.txt* For Vim version 9.1. Last change: 2024 Jul 12 | ||
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jun 07 | ||
|
||
|
||
VIM REFERENCE MANUAL by Bram Moolenaar | ||
|
@@ -14,7 +14,8 @@ when used in combination with more than one tab page. | |
2. Commands |tab-page-commands| | ||
3. Other items |tab-page-other| | ||
4. Setting 'tabline' |setting-tabline| | ||
5. Setting 'guitablabel' |setting-guitablabel| | ||
5. Setting 'tabpanel' |setting-tabpanel| | ||
6. Setting 'guitablabel' |setting-guitablabel| | ||
|
||
{not able to use multiple tab pages when the |+windows| feature was disabled | ||
at compile time} | ||
|
@@ -364,8 +365,8 @@ The 'tabline' option allows you to define your preferred way to tab pages | |
labels. This isn't easy, thus an example will be given here. | ||
|
||
For basics see the 'statusline' option. The same items can be used in the | ||
'tabline' option. Additionally, the |tabpagebuflist()|, |tabpagenr()| and | ||
|tabpagewinnr()| functions are useful. | ||
'tabline' and 'tabpanel' option. Additionally, the |tabpagebuflist()|, | ||
|tabpagenr()| and |tabpagewinnr()| functions are useful. | ||
|
||
Since the number of tab labels will vary, you need to use an expression for | ||
the whole option. Something like: > | ||
|
@@ -418,7 +419,66 @@ clever way when there is not enough room. Check the 'columns' option for the | |
space available. | ||
|
||
============================================================================== | ||
5. Setting 'guitablabel' *setting-guitablabel* | ||
5. Setting 'tabpanel' *tabpanel* *setting-tabpanel* | ||
|
||
The tabpanel is a vertical sidebar that displays tab page labels along the | ||
side of the window. It looks like this: | ||
> | ||
+-----------+---------------------------------- | ||
|(1) |text text text text text text text | ||
| ~/aaa.txt|text text text text text text text | ||
|(2) |text text text text text text text | ||
| ~/.vimrc |text text text text text text text | ||
|(3) |text text text text text text text | ||
| ~/bbb.js |text text text text text text text | ||
| ~/ccc.css|text text text text text text text | ||
| |text text text text text text text | ||
| |text text text text text text text | ||
| |text text text text text text text | ||
< | ||
To configure the tabpanel, use the following options: 'tabpanel', | ||
'showtabpanel' and 'tabpanelopt'. | ||
The 'tabpanel' and 'showtabpanel' options function similar to | ||
'statusline' or 'tabline'. | ||
|
||
The "columns:" item of 'tabpanelopt' option specifies the width of the | ||
tabpanel: | ||
> | ||
+------ This width | ||
| | ||
<----+-----> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (翻訳とは直接関係はないです) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. いつもの(タブ、スペースのMix)にした方がいいですね。 |
||
+-----------+---------------------------------- | ||
|(1) |text text text text text text text | ||
| ~/aaa.txt|text text text text text text text | ||
|(2) |text text text text text text text | ||
< | ||
The "align:" item of the 'tabpanelopt' option determines whether the tabpanel | ||
will be displayed on the left or right side of the window: | ||
> | ||
+----------------------------------+----------- | ||
|text text text text text text text|(1) | ||
|text text text text text text text| ~/aaa.txt | ||
|text text text text text text text|(2) | ||
< | ||
The "vert" item of the 'tabpanelopt' option specifies whether a vertical | ||
separator should be displayed between the tabpanel and the display part of the | ||
window: | ||
> | ||
+------ This is | ||
| | ||
v | ||
+-----------+---------------------------------- | ||
|(1) |text text text text text text text | ||
| ~/aaa.txt|text text text text text text text | ||
|(2) |text text text text text text text | ||
< | ||
The vertical separator character is taken from "tpl_vert" in 'fillchars'. | ||
|
||
You can customize the appearance of the tab page labels using the highlight | ||
groups: |hl-TabPanel| |hl-TabPanelSel| |hl-TabPanelFill| | ||
|
||
============================================================================== | ||
6. Setting 'guitablabel' *setting-guitablabel* | ||
|
||
When the GUI tab pages line is displayed, 'guitablabel' can be used to | ||
specify the label to display for each tab page. Unlike 'tabline', which | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここの部分、'tabpanel' が 'statusline' や 'tabline' と似た機能を持つというところはわかるのですが、'showtabpanel' は別でむしろ対応するのは 'laststatus' や 'showtabline' だと思うので、「'tabpanel' と 'showtabpanel' オプションは 'statusline' や 'tabline' オプションと同じ機能を持つ」と言われるとちょっと変な感じがするのですがどうでしょう?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vim-jp/issues#1433 (comment)
typo 報告スレに投げてみました。