cli : add command and file auto-completion#19985
Conversation
|
nice feature, @ServeurpersoCom could you please test this on windows? thanks! |
|
That's cool! Feature request: It would be great if directory contents were automatically listed when the path reaches a separator (\ or /), similar to shell behavior. Bug: When moving the cursor back (left arrow) to a separator character and pressing Tab, the separator gets repeated across the entire line (e.g. \\\\\...). |
That would be the TODO.
Not a bug in this PR, this happens in master. |
|
Found this while testing, existing issue but your PR exposes it, here's a one-liner you can include:) |
Should be a separate PR, though I'm not sure what that code was supposed to do and if that's the correct fix or not? |
Yes I can make short demo videos or even a PR, I tested it under Linux and Windows, it fixes the bug of the repeating character. Furthermore, I believe it was me who worked on the cursor movement with arrows keys. |
The reason I'm saying it should be a separate PR is so that we don't hide a bugfix in an unrelated PR. Anyway, maybe you can explain what the intention was? :) I don't understand what it's trying to do with the slashes? |
Ah yes, it's multi-line like in bash! It works well! But I need to test it again with the PR; I completely forgot about that feature! |
Must keep that in mind if/when adding another feature PR; reading whole directories (though maybe just wildcards is more useful). |
|
gentle ping for approval :) |
Adds auto-completion callback to
consoleand implements command and file auto-completion incli.