From c494951c12c15d79a187fd272b4169cf352ab0b0 Mon Sep 17 00:00:00 2001 From: h-east Date: Sat, 8 Mar 2025 13:20:28 +0900 Subject: [PATCH] Update options.{txt,jax} --- doc/options.jax | 24 ++++++++++++++++++++---- en/options.txt | 31 ++++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/doc/options.jax b/doc/options.jax index 70c7e196e..5a59579a8 100644 --- a/doc/options.jax +++ b/doc/options.jax @@ -1,4 +1,4 @@ -*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 02 +*options.txt* For Vim バージョン 9.1. Last change: 2025 Mar 07 VIMリファレンスマニュアル by Bram Moolenaar @@ -2147,6 +2147,18 @@ Note 1番目の形式では、行全体がオプション指定に使われる セキュリティ上の理由から、このオプションを |modeline| または |sandbox| 内で設定することはできない。 + *'completefuzzycollect'* *'cfc'* +'completefuzzycollect' 'cfc' 文字列 (既定では空) + グローバル + このオプションは特定の |ins-completion| モード (一部のみ) のファジーな + 収集を有効にし、入力に基づいてファジーマッチのために項目を収集する方法 + を調整する。 + オプションには次の値 (コンマで区切る) を含めることができ、それぞれが特 + 定の補完モードのファジーな収集を有効にする。 + files ファイル名 + keyword 'complete' および現在のファイルでのキーワード補完 + whole_line 行全体 + *'completeitemalign'* *'cia'* 'completeitemalign' 'cia' 文字列 (既定では "abbr,kind,menu") グローバル @@ -2171,7 +2183,11 @@ Note 1番目の形式では、行全体がオプション指定に使われる fuzzy 補完候補に対して |fuzzy-matching| を有効にする。これによ り、より柔軟で直感的なマッチングが可能になり、文字をスキッ プしたり、正確なシーケンスが入力されていなくてもマッチを見 - つけることができる。 + つけることができる。Note: このオプションは候補リストの収集 + には影響しない。補完候補が代替リストからどのように削減され + るかを制御するだけである。|fuzzy-matching| を使用して候補 + リストの代替をさらに収集する場合は、 + |'completefuzzycollect'| を参照。 longest 候補の文字列の最長の共通部分だけを挿入する。メニューが表示 されているならばCTRL-Lでさらに文字を挿入することができる。 @@ -2215,8 +2231,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる preinsert 現在の補完リーダーの一部ではない最初の候補単語の部分を事前 に挿入し、|hl-ComplMatchIns| ハイライトグループを使用する。 - これを機能させるには、"fuzzy" が設定されておらず、 - "menuone" が設定されている必要がある。 + これを機能させるには、"fuzzy" を設定せずに、"menuone" を設 + 定する必要がある。 preview 現在選択されている候補についての付加的な情報をプレビュー ウィンドウに表示する。"menu" または "menuone" と組み合わせ diff --git a/en/options.txt b/en/options.txt index 5ed06ba02..588daf643 100644 --- a/en/options.txt +++ b/en/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 9.1. Last change: 2025 Mar 02 +*options.txt* For Vim version 9.1. Last change: 2025 Mar 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2104,6 +2104,18 @@ A jump table for the options with a short description can be found at |Q_op|. This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. + *'completefuzzycollect'* *'cfc'* +'completefuzzycollect' 'cfc' string (default: empty) + global + This option enables fuzzy collection for (only some) specific + |ins-completion| modes, adjusting how items are gathered for fuzzy + matching based on input. + The option can contain the following values (separated by commas), + each enabling fuzzy collection for a specific completion mode: + files file names + keyword keyword completion in 'complete' and current file + whole_line whole lines + *'completeitemalign'* *'cia'* 'completeitemalign' 'cia' string (default: "abbr,kind,menu") global @@ -2123,7 +2135,12 @@ A jump table for the options with a short description can be found at |Q_op|. fuzzy Enable |fuzzy-matching| for completion candidates. This allows for more flexible and intuitive matching, where characters can be skipped and matches can be found even - if the exact sequence is not typed. + if the exact sequence is not typed. Note: This option + does not affect the collection of candidate list, it only + controls how completion candidates are reduced from the + list of alternatives. If you want to use |fuzzy-matching| + to gather more alternatives for your candidate list, + see |'completefuzzycollect'|. longest Only insert the longest common text of the matches. If the menu is displayed you can use CTRL-L to add more @@ -2140,15 +2157,15 @@ A jump table for the options with a short description can be found at |Q_op|. match, e.g., what file it comes from. noinsert Do not insert any text for a match until the user selects - a match from the menu. Only works in combination with - "menu" or "menuone". No effect if "longest" is present. + a match from the menu. Only works in combination with + "menu" or "menuone". No effect if "longest" is present. noselect Same as "noinsert", except that no menu item is - pre-selected. If both "noinsert" and "noselect" are + pre-selected. If both "noinsert" and "noselect" are present, "noselect" has precedence. nosort Disable sorting of completion candidates based on fuzzy - scores when "fuzzy" is enabled. Candidates will appear + scores when "fuzzy" is enabled. Candidates will appear in their original order. popup Show extra information about the currently selected @@ -2168,7 +2185,7 @@ A jump table for the options with a short description can be found at |Q_op|. Preinsert the portion of the first candidate word that is not part of the current completion leader and using the |hl-ComplMatchIns| highlight group. In order for it to - work, "fuzzy" must not bet set and "menuone" must be set. + work, "fuzzy" must not be set and "menuone" must be set. preview Show extra information about the currently selected completion in the preview window. Only works in