chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

Incremental tab completion on auto-suggestion #658

Closed chambm closed 3 weeks ago

chambm commented 1 month ago

I love clink, thanks for maintaining it!

I often call executables that are several folders deep with different arguments. Clink often correctly autosuggests previous commands that start with those paths, but my only options at that point are to either accept the whole suggestion (including arguments) or continue typing all the folders until I can do traditional directory-contents-based tab completion. It would be even more helpful if I had a button that accepted the auto-suggestion incrementally, e.g. one space-separated token at a time, or one char[] *args token at a time if it's easy enough to process quoted tokens.

chrisant996 commented 1 month ago

The documentation on the feature has that info. 🙂

https://chrisant996.github.io/clink/clink.html

Immediately after the table of contents is a link to documentation on the Auto-Suggestions feature.

hutcho commented 3 weeks ago

Use ctrl+right arrow instead of just right arrow

chambm commented 3 weeks ago

Fantastic! I did try lots of Ctrl/Alt/Shift combinations but evidently not the Ctrl-Right arrow one. :) I also read the docs but not the right one!