Mercurial > vim
annotate runtime/lang/menu_af_af.latin1.vim @ 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 | a1effd6bb5ba |
children | 58f58c0c0fc8 |
rev | line source |
---|---|
7 | 1 " Menu Translations: Afrikaas |
2 " Maintainer: Danie Roux <droux@tuks.co.za> | |
3507
8201108e9cf0
More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents:
3496
diff
changeset
|
3 " Last Change: 2012 May 01 |
27788
a1effd6bb5ba
patch 8.2.4420: menu translations are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
3507
diff
changeset
|
4 " Original translations |
7 | 5 |
6 " Quit when menu translations have already been done. | |
7 if exists("did_menu_trans") | |
8 finish | |
9 endif | |
10 let did_menu_trans = 1 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
11 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
12 set cpo&vim |
7 | 13 |
14 " The translations below are in latin1, but they work for cp1252 and | |
15 " iso-8859-15 without conversion as well. | |
16 if &enc != "cp1252" && &enc != "iso-8859-15" | |
17 scriptencoding latin1 | |
18 endif | |
19 | |
20 | |
21 " Help menu | |
22 menutrans &Help &Hulp | |
23 menutrans &Overview<Tab><F1> &Oorsig<Tab><F1> | |
24 menutrans &How-to\ links &How-to\ Indeks | |
25 "menutrans &GUI &GUI | |
26 menutrans &Credits &Met\ dank\ aan | |
27 menutrans Co&pying &Kopiereg | |
28 menutrans &Find\.\.\. &Soek\.\.\. | |
29 menutrans &Version &Weergawe | |
30 menutrans &About &Inleiding\ skerm | |
31 | |
32 " File menu | |
33 menutrans &File &Lêer | |
34 menutrans &Open\.\.\.<Tab>:e &Open\.\.\.<Tab>:e | |
35 menutrans Sp&lit-Open\.\.\.<Tab>:sp Maak\ oop\ in\ nuwe\ &venster\.\.\.<Tab>:sp | |
36 menutrans &New<Tab>:enew &Nuut<Tab>:enew | |
37 menutrans &Close<Tab>:close Maak\ &Toe<Tab>:close | |
38 menutrans &Save<Tab>:w &Skryf<Tab>:w | |
39 menutrans Save\ &As\.\.\.<Tab>:w Skryf\ &as\.\.\.<Tab>:w | |
40 menutrans &Print &Druk | |
41 menutrans Sa&ve-Exit<Tab>:wqa Skryf\ en\ verlaat<Tab>:wqa | |
42 menutrans E&xit<Tab>:qa &Verlaat<Tab>:qa | |
43 | |
44 " Edit menu | |
45 menutrans &Edit &Wysig | |
46 menutrans &Undo<Tab>u Terug<Tab>u | |
47 menutrans &Redo<Tab>^R Voo&ruit<Tab>^R | |
48 menutrans Rep&eat<Tab>\. &Herhaal<Tab>\. | |
49 menutrans Cu&t<Tab>"+x &Knip<Tab>"+x | |
50 menutrans &Copy<Tab>"+y &Kopiëer<Tab>"+y | |
51 menutrans &Paste<Tab>"+gP Plak<Tab>"+gP | |
52 menutrans Put\ &Before<Tab>[p Voeg\ &Voor\ in<Tab>[p | |
53 menutrans Put\ &After<Tab>]p Voeg\ A>er\ in<Tab>]p | |
54 menutrans &Select\ all<Tab>ggVG Kies\ &Alles<Tab>ggVG | |
55 menutrans &Find\.\.\. &Soek\.\.\. | |
56 menutrans Find\ and\ Rep&lace\.\.\. Soek\ en\ Vervang\.\.\. | |
57 menutrans Options\.\.\. Opsies\.\.\. | |
58 | |
59 " Programming menu | |
60 menutrans &Tools &Gereedskap | |
61 menutrans &Jump\ to\ this\ tag<Tab>g^] &Spring\ na\ Etiket<Tab>g^] | |
62 menutrans Jump\ &back<Tab>^T Spring\ &Terug<Tab>^T | |
63 menutrans Build\ &Tags\ File Genereer\ &Etiket\ Leêr | |
64 menutrans &Make<Tab>:make Voer\ &Make\ uit<Tab>:make | |
65 menutrans &List\ Errors<Tab>:cl &Foutlys<Tab>:cl | |
66 menutrans L&ist\ Messages<Tab>:cl! &Boodskaplys<Tab>:cl! | |
67 menutrans &Next\ Error<Tab>:cn Volgende\ Fout<Tab>:cn | |
68 menutrans &Previous\ Error<Tab>:cp Vorige\ Fout<Tab>:cp | |
69 menutrans &Older\ List<Tab>:cold &Ouer\ Lys<Tab>:cold | |
70 menutrans N&ewer\ List<Tab>:cnew &Nuwer\ Lys<Tab>:cnew | |
71 menutrans Error\ &Window<Tab>:cwin Foute\ Venster<Tab>:cwin | |
72 menutrans Convert\ to\ HEX<Tab>:%!xxd Verwissel\ na\ HEX<Tab>:%!xxd | |
73 menutrans Convert\ back<Tab>:%!xxd\ -r Verwissel\ terug<Tab>:%!xxd\ -r | |
74 | |
75 " Names for buffer menu. | |
76 menutrans &Buffers &Buffers | |
77 menutrans Refresh Verfris | |
78 menutrans Delete Verwyder | |
79 menutrans Alternate Vorige | |
80 menutrans [No\ File] [Geen\ Leêr] | |
81 | |
82 " Window menu | |
83 menutrans &Window &Venster | |
84 menutrans &New<Tab>^Wn &Nuut<Tab>^Wn | |
85 menutrans S&plit<Tab>^Ws Ver&deel<Tab>^Ws | |
86 menutrans Sp&lit\ To\ #<Tab>^W^^ Verdeel\ N&a\ #<Tab>^W^^ | |
87 menutrans Split\ &Vertically<Tab>^Wv Verdeel\ Vertikaal<Tab>^Wv | |
88 menutrans &Close<Tab>^Wc &Maak\ toe<Tab>^Wc | |
89 menutrans Close\ &Other(s)<Tab>^Wo Maak\ &Ander\ Toe<Tab>^Wo | |
90 menutrans Ne&xt<Tab>^Ww Volgende<Tab>^Ww | |
91 menutrans P&revious<Tab>^WW &Vorige<Tab>^WW | |
92 menutrans &Equal\ Size<Tab>^W= &Gelyke\ hoogte<Tab>^W= | |
93 menutrans &Max\ Height<Tab>^W_ &Maksimale\ hoogte<Tab>^W_ | |
94 menutrans M&in\ Height<Tab>^W1_ Mi&nimale\ hoogte<Tab>^W1_ | |
95 menutrans Max\ Width<Tab>^W\| Maksimale\ breedte<Tab>^W\| | |
96 menutrans Min\ Width<Tab>^W1\| Minimale\ breedte<Tab>^W1\| | |
97 menutrans Rotate\ &Up<Tab>^WR Roteer\ na\ &bo<Tab>^WR | |
98 menutrans Rotate\ &Down<Tab>^Wr Roteer\ na\ &onder<Tab>^Wr | |
99 menutrans Select\ Fo&nt\.\.\. Kies\ font\.\.\. | |
100 | |
101 " The popup menu | |
102 menutrans &Undo &Terug | |
103 menutrans Cu&t Knip | |
104 menutrans &Copy &Kopiëer | |
105 menutrans &Paste &Plak | |
106 menutrans &Delete &Verwyder | |
107 menutrans Select\ Blockwise Kies\ per\ Blok | |
108 menutrans Select\ &Word Kies\ een\ &Woord | |
109 menutrans Select\ &Line Kies\ een\ &Reël | |
110 menutrans Select\ &Block Kies\ een\ &Blok | |
111 menutrans Select\ &All Kies\ &Alles | |
112 | |
113 " The GUI toolbar | |
114 if has("toolbar") | |
115 if exists("*Do_toolbar_tmenu") | |
116 delfun Do_toolbar_tmenu | |
117 endif | |
118 fun Do_toolbar_tmenu() | |
119 tmenu ToolBar.Open Maak leêr oop | |
120 tmenu ToolBar.Save Skryf leêr | |
121 tmenu ToolBar.SaveAll Skryf alle leêrs | |
122 tmenu ToolBar.Print Druk | |
123 tmenu ToolBar.Undo Terug | |
124 tmenu ToolBar.Redo Vooruit | |
125 tmenu ToolBar.Cut Knip | |
126 tmenu ToolBar.Copy Kopiëer | |
127 tmenu ToolBar.Paste Plak | |
128 tmenu ToolBar.Find Soek... | |
129 tmenu ToolBar.FindNext Soek volgende | |
130 tmenu ToolBar.FindPrev Soek vorige | |
131 tmenu ToolBar.Replace Soek en vervang... | |
132 tmenu ToolBar.LoadSesn Laai sessie | |
133 tmenu ToolBar.SaveSesn Stoor sessie | |
134 tmenu ToolBar.RunScript Voer vim skrip uit | |
135 tmenu ToolBar.Make Voer make uit | |
136 tmenu ToolBar.Shell Begin dop | |
137 tmenu ToolBar.RunCtags Genereer etikette | |
138 tmenu ToolBar.TagJump Spring na etiket | |
139 tmenu ToolBar.Help Hulp | |
140 tmenu ToolBar.FindHelp Soek hulp... | |
141 endfun | |
142 endif | |
143 | |
144 " Syntax menu | |
145 menutrans &Syntax &Sintaks | |
146 menutrans Set\ 'syntax'\ only Stel\ slegs\ 'syntax' | |
147 menutrans Set\ 'filetype'\ too Verander\ 'filetype'\ ook | |
148 menutrans &Off &Af | |
149 menutrans &Manual &Met\ die\ hand | |
150 menutrans A&utomatic O&utomaties | |
151 menutrans o&n\ (this\ file) Aa&n\ (die\ leêr) | |
152 menutrans o&ff\ (this\ file) &Af\ (die\ leêr) | |
153 menutrans Co&lor\ test Toets\ die\ &kleure | |
154 menutrans &Highlight\ test Toets\ die\ verligting | |
155 menutrans &Convert\ to\ HTML Verwissel\ na\ HTML | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
156 |
3507
8201108e9cf0
More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents:
3496
diff
changeset
|
157 let &cpo = s:keepcpo |
8201108e9cf0
More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents:
3496
diff
changeset
|
158 unlet s:keepcpo |