mirror of
https://github.com/vim/vim
synced 2025-07-15 16:51:57 +00:00
patch 9.1.1505: not possible to return completion type for :ex command
Problem: not possible to return command-line completion type for :ex command Solution: make getcmdcompltype() accept an optional and return the command-line completion for that arg (Shougo Matsushita). closes: #17606 Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
20eb68a8f2
commit
5d2354fc07
@ -1,4 +1,4 @@
|
||||
*builtin.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -238,8 +238,8 @@ getcharsearch() Dict last character search
|
||||
getcharstr([{expr} [, {opts}]]) String get one character from the user
|
||||
getcmdcomplpat() String return the completion pattern of the
|
||||
current command-line completion
|
||||
getcmdcompltype() String return the type of the current
|
||||
command-line completion
|
||||
getcmdcompltype({pat}) String return the type of command-line
|
||||
completion
|
||||
getcmdline() String return the current command-line input
|
||||
getcmdpos() Number return cursor position in command-line
|
||||
getcmdprompt() String return the current command-line prompt
|
||||
@ -4201,10 +4201,11 @@ getcmdcomplpat() *getcmdcomplpat()*
|
||||
Return type: |String|
|
||||
|
||||
|
||||
getcmdcompltype() *getcmdcompltype()*
|
||||
Return the type of the current command-line completion.
|
||||
Only works when the command line is being edited, thus
|
||||
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
|
||||
getcmdcompltype([{pat}]) *getcmdcompltype()*
|
||||
Return the type of command-line completion using {pat}.
|
||||
If {pat} is omited, only works when the command line is being
|
||||
edited, thus requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
|
||||
|
||||
See |:command-completion| for the return string.
|
||||
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
|
||||
|getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
|
||||
|
@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 9.1. Last change: 2025 Apr 27
|
||||
*usr_41.txt* For Vim version 9.1. Last change: 2025 Jul 03
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@ -1100,8 +1100,7 @@ Buffers, windows and the argument list:
|
||||
Command line: *command-line-functions*
|
||||
getcmdcomplpat() get completion pattern of the current command
|
||||
line
|
||||
getcmdcompltype() get the type of the current command line
|
||||
completion
|
||||
getcmdcompltype() get the type of the command line completion
|
||||
getcmdline() get the current command line input
|
||||
getcmdprompt() get the current command line prompt
|
||||
getcmdpos() get position of the cursor in the command line
|
||||
|
@ -1,4 +1,4 @@
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 Jun 28
|
||||
*version9.txt* For Vim version 9.1. Last change: 2025 Jul 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -41607,6 +41607,8 @@ Completion: ~
|
||||
- allow to complete directories from 'cdpath' for |:cd| and similar commands,
|
||||
add the "cd_in_path" completion type for e.g. |:command-complete| and
|
||||
|getcompletion()|
|
||||
- |getcompletion()| now accepts a pat and returns the completion type for the
|
||||
{pat} argument
|
||||
- allow to complete shell commands and files using the new shellcmdline
|
||||
completion type using |:command-complete| and |getcmdcomplpat()|
|
||||
- allow to specify additional attributes in the completion menu (allows to
|
||||
|
Reference in New Issue
Block a user