Accept single word from auto-complete suggestion instead of whole line #20853

Open
opened 2026-01-31 07:25:54 +00:00 by claunia · 0 comments
Owner

Originally created by @Simran-B on GitHub (Nov 20, 2023).

Description of the new feature/enhancement

I would like to be able to partially use auto-complete suggestions similar to what shells like fish offer.
Using Alt+Right Arrow or Ctrl+Right Arrow, I can add the next word to my input. The path separator character is considered a word boundary.

The command history with F2 or (Shift+)F8 is a better option if you used a command before, but if it's not in the list or you never entered it before, it would save time if you could use some of the auto-complete suggestions instead of typing everything or accepting the full suggestion and then having to delete several characters.

https://github.com/microsoft/terminal/assets/7819991/8a3111dc-8632-4db7-8d8f-1cdfec344f37

Proposed technical implementation details (optional)

Ctrl+Left/Right Arrow can already be used to jump one word at a time, with the path separator being a word boundary. This feature could potentially be extended so that one word of the auto-complete suggestion is added to the input when the cursor is at the end of the current input and you hit the Ctrl+Right Arrow key combination instead of doing nothing.

Originally created by @Simran-B on GitHub (Nov 20, 2023). # Description of the new feature/enhancement I would like to be able to partially use auto-complete suggestions similar to what shells like fish offer. Using <kbd>Alt</kbd>+<kbd>Right Arrow</kbd> or <kbd>Ctrl</kbd>+<kbd>Right Arrow</kbd>, I can add the next word to my input. The path separator character is considered a word boundary. The command history with <kbd>F2</kbd> or (<kbd>Shift</kbd>+)<kbd>F8</kbd> is a better option if you used a command before, but if it's not in the list or you never entered it before, it would save time if you could use some of the auto-complete suggestions instead of typing everything or accepting the full suggestion and then having to delete several characters. https://github.com/microsoft/terminal/assets/7819991/8a3111dc-8632-4db7-8d8f-1cdfec344f37 # Proposed technical implementation details (optional) <kbd>Ctrl</kbd>+<kbd>Left/Right Arrow</kbd> can already be used to jump one word at a time, with the path separator being a word boundary. This feature could potentially be extended so that one word of the auto-complete suggestion is added to the input when the cursor is at the end of the current input and you hit the <kbd>Ctrl</kbd>+<kbd>Right Arrow</kbd> key combination instead of doing nothing.
claunia added the Issue-FeatureNeeds-TriageResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 07:25:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20853