32 Commits

Author SHA1 Message Date
Ingo Karkat d0d8aabd4a Add ingo#cmdargs#register#ParsePrependedWritableRegister() alternative to ingo#cmdargs#register#ParseAppendedWritableRegister() 2017-05-26 17:51:24 +02:00
Ingo Karkat 72e21671ad file creation 2017-05-26 17:51:24 +02:00
Ingo Karkat ac2aa7c75d BUG: Support of optional a:flagsMatchCount in ingo#cmdargs#pattern#ParseUnescaped() and ingo#cmdargs#pattern#ParseUnescapedWithLiteralWholeWord() broke no-flags String type return value by returning a one-element list 2017-05-26 17:50:35 +02:00
Ingo Karkat dccd019e57 Add ingo#cmdargs#pattern#Render() 2017-05-26 17:50:33 +02:00
Ingo Karkat 7b974a56bf Add missing ingo#cmdargs#pattern#ParseWithLiteralWholeWord() variant 2017-05-26 17:50:24 +02:00
Ingo Karkat 767d24a3a7 ENH: Also support optional a:flagsMatchCount in ingo#cmdargs#pattern#ParseUnescaped() and ingo#cmdargs#pattern#ParseUnescapedWithLiteralWholeWord() 2017-05-26 17:50:21 +02:00
Ingo Karkat a4b12cea03 ENH: ingo#cmdargs#pattern#Parse(): Add second optional a:flagsMatchCount argument, similar to what ingo#cmdargs#substitute#Parse() has in a:options
Add ingo#cmdargs#pattern#RawParse().
2017-05-26 17:50:18 +02:00
Ingo Karkat af361b541b 2017-05-26 17:50:13 +02:00
Ingo Karkat e5038639e2 2017-05-26 17:50:13 +02:00
Ingo Karkat d5287ce66b FIX: ingo#cmdargs#substitute#Parse() branch for special case of {flags} without /pat/string/ must only be entered when a:arguments is not empty 2017-05-26 17:50:10 +02:00
Ingo Karkat bfbd2c3309 ENH: Add second optional flag a:isKeepDirectories to ingo#cmdargs#glob#Expand() / ingo#cmdargs#glob#ExpandSingle() 2017-05-26 17:47:34 +02:00
Ingo Karkat fdb7489ccf Use ingo#compat#glob() 2017-05-26 17:47:32 +02:00
Ingo Karkat 1affbc0ab3 file creation 2017-05-26 17:43:44 +02:00
Ingo Karkat 9b7064db65 2017-05-26 17:43:44 +02:00
Ingo Karkat ca60ad060d file creation 2017-05-26 17:43:44 +02:00
Ingo Karkat 401ad673d7 CHG: Make ingo#cmdargs#file#FilterFileOptionsAndCommands() return the options and commands in a List, not as a joined String
This allows clients to easily re-escape them and handle multiple ones, e.g. ++ff=dos +setf\ foo.
2017-05-26 17:43:40 +02:00
Ingo Karkat a14e17c23e Add ingo#cmdargs#pattern#IsDelimited() 2017-05-26 17:33:38 +02:00
Ingo Karkat c09d238980 Use ingo#escape#Unescape() in ingo#cmdargs#pattern#Unescape()
Add ingo#cmdargs#pattern#ParseUnescaped() to avoid the double and inefficient ingo#cmdargs#pattern#Unescape(ingo#cmdargs#pattern#Parse()) Add ingo#cmdargs#pattern#ParseUnescapedWithLiteralWholeWord() for the common [/]{pattern}[/ behavior as built-in commands like |:djump|]. When the pattern isn't delimited by /.../, the returned pattern is modified so that only literal whole words are matched. so far used by many clients.
2017-05-26 17:32:39 +02:00
Ingo Karkat 11e75b3789 Use operating system detection functions from ingo/os.vim 2017-05-26 17:32:03 +02:00
Ingo Karkat 3596f1398f Factor out s:EnsureList() to ingo/list.vim 2017-05-26 17:30:20 +02:00
Ingo Karkat 3dc3839f4a ENH: Add a:options.commandExpr to ingo#cmdargs#range#Parse() 2017-05-26 17:29:50 +02:00
Ingo Karkat 626859a007 file creation 2017-05-26 17:29:50 +02:00
Ingo Karkat cc5ce7bb86 2017-05-26 17:29:18 +02:00
Ingo Karkat 372ca5bc1b Use ingo#escape#Unescape() in ingo#cmdargs#pattern#Unescape()
Add ingo#cmdargs#pattern#ParseUnescaped() to avoid the double and inefficient ingo#cmdargs#pattern#Unescape(ingo#cmdargs#pattern#Parse()) so far used by many clients.
FIX: Use the rules for the /pattern/ separator as stated in :help E146.
2017-05-26 17:29:14 +02:00
Ingo Karkat 6e30560caf Minor: Make matchlist() robust against 'ignorecase' 2017-05-26 17:28:01 +02:00
Ingo Karkat 8a4290803b FIX: Use the rules for the /pattern/ separator as stated in :help E146 2017-05-26 17:26:43 +02:00
Ingo Karkat ad93622359 2017-05-26 17:26:22 +02:00
Ingo Karkat f5bfeee23b file creation 2017-05-26 17:25:09 +02:00
Ingo Karkat 65a10062fd Minor: Make matchlist() robust against 'ignorecase' 2017-05-26 17:24:58 +02:00
Ingo Karkat 8b27c18cdd file creation 2017-05-26 17:14:40 +02:00
Ingo Karkat 43edfac297 file creation 2017-05-26 17:14:40 +02:00
Ingo Karkat f54e5024c2 file creation 2017-05-26 17:14:24 +02:00