On Mon Jun 16 00:37:54 2025 +0000, eric pouech wrote:
the copy part looks good to me (first 2 commits) handling of separators in completion still lacks a couple of items `dir "a+<TAB>` differs from native `dir a,<TAB>` differs from native `dir a"<TAB>` differs from native note there are characters (other than '+') that native (tested on Win10 only) uses for file separation: '\', '&', '(', ')', '/', '!', '~', '{', '}', '[', ']' and surprisingly '^' (as ^ is an escape character) what is not supported as separator: '<', '>' how strange!!! you want a filename after a redirection! '|' (that's strange I would have expected & and | to behave similarly) and `dir a><TAB>` the '>' is swallowed by completion... not sure we want that (esp. since you'd expect to type a filename after a redirection operator)
Latest changes pushed. This should be very close to what you are looking for. Notable exceptions are examples containing quote characters. I don't see a good way to resolve these issues if we are using WCMD_parameter to parse the line, since this function will remove all quotes it finds. Otherwise, tab-completion should be working with the remainder of these delimiter characters now.