Skip to content

Commit

Permalink
Merge pull request #1963 from h-east/update-popup
Browse files Browse the repository at this point in the history
Update popup.{txt,jax}
  • Loading branch information
h-east authored Mar 3, 2025
2 parents 900f0ab + 1b590e1 commit 36a1f4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions doc/popup.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*popup.txt* For Vim バージョン 9.1. Last change: 2025 Jan 08
*popup.txt* For Vim バージョン 9.1. Last change: 2025 Feb 20


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -512,8 +512,8 @@ popup_menu({what}, {options}) *popup_menu()*
\ filter: 'popup_filter_menu',
\ mapping: 0,
\ })
< 現在行は、"PopupSelected" を使用してマッチでハイライトされる。
未定義の場合は、|PmenuSel| が使われる
< 現在行は、デフォルトで "PmenuSel" にリンクされている
|hl-PopupSelected| を使用してマッチでハイライトされる

プロパティを変更するには {options} を使用する。少なくとも
"callback" を選択された項目を扱う関数に設定するべきである。
Expand Down Expand Up @@ -568,8 +568,8 @@ popup_notification({what}, {options}) *popup_notification()*
\ close: 'click',
\ padding: [0,1,0,1],
\ })
< PopupNotification ハイライトグループが定義されている場合は、
WarningMsg の代わりに使用される。
< |hl-PopupNotification| ハイライトグループが定義されている場合
は、WarningMsg の代わりに使用される。

|+timers| 機能なしだと、ポップアップは自動的に消えない。ユー
ザーはクリックする必要がある。
Expand Down
6 changes: 3 additions & 3 deletions en/popup.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*popup.txt* For Vim version 9.1. Last change: 2025 Jan 08
*popup.txt* For Vim version 9.1. Last change: 2025 Feb 20


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -504,7 +504,7 @@ popup_menu({what}, {options}) *popup_menu()*
\ mapping: 0,
\ })
< The current line is highlighted with a match using
"PopupSelected", or "PmenuSel" if that is not defined.
|hl-PopupSelected| which is linked to "PmenuSel" by default.

Use {options} to change the properties. Should at least set
"callback" to a function that handles the selected item.
Expand Down Expand Up @@ -559,7 +559,7 @@ popup_notification({what}, {options}) *popup_notification()*
\ close: 'click',
\ padding: [0,1,0,1],
\ })
< The PopupNotification highlight group is used instead of
< The |hl-PopupNotification| highlight group is used instead of
WarningMsg if it is defined.

Without the |+timers| feature the popup will not disappear
Expand Down

0 comments on commit 36a1f4f

Please sign in to comment.