Mercurial > vim
annotate src/vim.manifest @ 33399:95db67c7b754 v9.0.1958
patch 9.0.1958: cannot complete option values
Commit: https://github.com/vim/vim/commit/900894b09a95398dfc75599e9f0aa2ea25723384
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Fri Sep 29 20:42:32 2023 +0200
patch 9.0.1958: cannot complete option values
Problem: cannot complete option values
Solution: Add completion functions for several options
Add cmdline tab-completion for setting string options
Add tab-completion for setting string options on the cmdline using
`:set=` (along with `:set+=` and `:set-=`).
The existing tab completion for setting options currently only works
when nothing is typed yet, and it only fills in with the existing value,
e.g. when the user does `:set diffopt=<Tab>` it will be completed to
`set diffopt=internal,filler,closeoff` and nothing else. This isn't too
useful as a user usually wants auto-complete to suggest all the possible
values, such as 'iblank', or 'algorithm:patience'.
For set= and set+=, this adds a new optional callback function for each
option that can be invoked when doing completion. This allows for each
option to have control over how completion works. For example, in
'diffopt', it will suggest the default enumeration, but if `algorithm:`
is selected, it will further suggest different algorithm types like
'meyers' and 'patience'. When using set=, the existing option value will
be filled in as the first choice to preserve the existing behavior. When
using set+= this won't happen as it doesn't make sense.
For flag list options (e.g. 'mouse' and 'guioptions'), completion will
take into account existing typed values (and in the case of set+=, the
existing option value) to make sure it doesn't suggest duplicates.
For set-=, there is a new `ExpandSettingSubtract` function which will
handle flag list and comma-separated options smartly, by only suggesting
values that currently exist in the option.
Note that Vim has some existing code that adds special handling for
'filetype', 'syntax', and misc dir options like 'backupdir'. This change
preserves them as they already work, instead of converting to the new
callback API for each option.
closes: #13182
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Sep 2023 20:45:04 +0200 |
parents | f8116058ca76 |
children | 4635e43f2c6f |
rev | line source |
---|---|
7 | 1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
24689
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
2 <!-- |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
3 VIM - Vi IMproved by Bram Moolenaar et al. |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
4 MS-Windows WinSxS (aka Side-by-side assembly) manifest file |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
5 Do ":help uganda" in Vim to read copying and usage conditions. |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
6 Do ":help credits" in Vim to see a list of people who contributed. |
2e6cc2bf37d8
patch 8.2.2883: MS-Windows manifest file name is misleading
Bram Moolenaar <Bram@vim.org>
parents:
18985
diff
changeset
|
7 --> |
27160
4482dd5f8869
patch 8.2.4109: MS-Windows: high dpi support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
8 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> |
7 | 9 <assemblyIdentity |
1072 | 10 processorArchitecture="*" |
29314 | 11 version="9.0.0.0" |
7 | 12 type="win32" |
13 name="Vim" | |
14 /> | |
15 <description>Vi Improved - A Text Editor</description> | |
16 <dependency> | |
17 <dependentAssembly> | |
18 <assemblyIdentity | |
19 type="win32" | |
20 name="Microsoft.Windows.Common-Controls" | |
21 version="6.0.0.0" | |
22 publicKeyToken="6595b64144ccf1df" | |
23 language="*" | |
1072 | 24 processorArchitecture="*" |
7 | 25 /> |
26 </dependentAssembly> | |
27 </dependency> | |
1702 | 28 <!-- Vista security requirements --> |
29 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> | |
30 <security> | |
31 <requestedPrivileges> | |
32 <requestedExecutionLevel | |
33 level="asInvoker" | |
34 uiAccess="false"/> | |
35 </requestedPrivileges> | |
36 </security> | |
37 </trustInfo> | |
1908 | 38 <!-- Vista High DPI aware --> |
39 <asmv3:application> | |
27160
4482dd5f8869
patch 8.2.4109: MS-Windows: high dpi support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
40 <asmv3:windowsSettings> |
4482dd5f8869
patch 8.2.4109: MS-Windows: high dpi support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
41 <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> |
4482dd5f8869
patch 8.2.4109: MS-Windows: high dpi support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
42 <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness> |
1908 | 43 </asmv3:windowsSettings> |
44 </asmv3:application> | |
18985
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
45 <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
46 <application> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
47 <!--The ID below indicates application support for Windows Vista --> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
48 <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
49 <!--The ID below indicates application support for Windows 7 --> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
50 <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
51 <!--The ID below indicates application support for Windows 8 --> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
52 <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
53 <!--The ID below indicates application support for Windows 8.1 --> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
54 <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> |
27160
4482dd5f8869
patch 8.2.4109: MS-Windows: high dpi support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
24689
diff
changeset
|
55 <!--The ID below indicates application support for Windows 10 and 11 --> |
18985
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
56 <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
57 </application> |
a4e56c569f11
patch 8.2.0053: windowsversion() does not always return the right value
Bram Moolenaar <Bram@vim.org>
parents:
18879
diff
changeset
|
58 </compatibility> |
7 | 59 </assembly> |