help w/ partial autocomplete #477
-
Hi, Been using clink for a year or so and really loving it. And now I have a question about auto-completing commands. I often use very similar long commands and I'd like to be able to use the arrow keys to autocomplete a command letter by letter. I'm on windows using Terminal Preview with powershell. Let's say I have the following command in my history: I now need to run Ideally I'd be able to edit the autocomplete and keep the parts I want before and after the current cursor position, so I would right arrow until Does that make sense or have I overcomplicated my description? I'm thinking this would probably be a lua script that I might have to write. I tried alt+h and looked through the commands, but didn't see the one that would do this. Ideas? bob |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It sounds like you're talking about the auto-suggest feature, not completions.
Those keys perform very different actions there:
It may be helpful to review the documentation for Auto-suggest. Ctrl-Right accepts the next word from the auto-suggestion text. Or Shift-Right accepts the next full word, delimited only by spaces. There isn't a command to accept a single letter at a time from the auto-suggestion text (dark gray text). The auto-suggest feature integrates with certain commands bound to certain keys, to do additional actions in cases where the commands otherwise wouldn't have done anything (e.g. Right at the end of the input line). It isn't really feasible to add a new command for accepting a single letter at a time because of the complexities of how it's integrated as extra actions into other pre-existing commands. P.S. The auto-suggest feature copies how the fish shell for Linux does auto-suggest. PowerShell also now has auto-suggest, which it calls Predictive IntelliSense. |
Beta Was this translation helpful? Give feedback.
It sounds like you're talking about the auto-suggest feature, not completions.
Those keys perform ve…