comparison runtime/doc/insert.txt @ 16237:56451a2677dc v8.1.1123

patch 8.1.1123: no way to avoid filtering for autocomplete function commit https://github.com/vim/vim/commit/73655cf0ca37a9aa8f56fc51bb853a8b1f7b43d4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 6 13:45:55 2019 +0200 patch 8.1.1123: no way to avoid filtering for autocomplete function Problem: No way to avoid filtering for autocomplete function, causing flickering of the popup menu. Solution: Add the "equal" field to complete items. (closes #3887)
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Apr 2019 14:00:05 +0200
parents a23c883685cb
children b471858040bc
comparison
equal deleted inserted replaced
16236:453a46ac5660 16237:56451a2677dc
1103 preview window 1103 preview window
1104 kind single letter indicating the type of completion 1104 kind single letter indicating the type of completion
1105 icase when non-zero case is to be ignored when comparing 1105 icase when non-zero case is to be ignored when comparing
1106 items to be equal; when omitted zero is used, thus 1106 items to be equal; when omitted zero is used, thus
1107 items that only differ in case are added 1107 items that only differ in case are added
1108 equal when non-zero, always treat this item to be equal when
1109 comparing. Which means, "equal=1" disables filtering
1110 of this item.
1108 dup when non-zero this match will be added even when an 1111 dup when non-zero this match will be added even when an
1109 item with the same word is already present. 1112 item with the same word is already present.
1110 empty when non-zero this match will be added even when it is 1113 empty when non-zero this match will be added even when it is
1111 an empty string 1114 an empty string
1112 user_data custom data which is associated with the item and 1115 user_data custom data which is associated with the item and
1113 available in |v:completed_item| 1116 available in |v:completed_item|
1114 1117
1115 All of these except "icase", "dup" and "empty" must be a string. If an item 1118 All of these except "icase", "equal", "dup" and "empty" must be a string. If
1116 does not meet these requirements then an error message is given and further 1119 an item does not meet these requirements then an error message is given and
1117 items in the list are not used. You can mix string and Dictionary items in 1120 further items in the list are not used. You can mix string and Dictionary
1118 the returned list. 1121 items in the returned list.
1119 1122
1120 The "menu" item is used in the popup menu and may be truncated, thus it should 1123 The "menu" item is used in the popup menu and may be truncated, thus it should
1121 be relatively short. The "info" item can be longer, it will be displayed in 1124 be relatively short. The "info" item can be longer, it will be displayed in
1122 the preview window when "preview" appears in 'completeopt'. The "info" item 1125 the preview window when "preview" appears in 'completeopt'. The "info" item
1123 will also remain displayed after the popup menu has been removed. This is 1126 will also remain displayed after the popup menu has been removed. This is