-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better completion when using `alwaysHighlight'
This change improves the UX of X.Prompt when `alwaysHighlight` is enabled. This is especially useful for use with `mkXPromptWithModes` which forces `alwaysHighlight` to be `True`. When the user presses the `complKey` and `alwaysHighlight` is `True`, one of two things will happen: 1. If this is the first time `complKey` is pressed in this round of completion then the prompt buffer will be updated so it contains the currently highlighted item. 2. Every other time that the `complKey` is pressed the next completion item will be selected and the prompt buffer updated. This gives immediate feedback to the user and allows using some prompts with `alwaysHighlight` that weren't possible before (e.g., shellPrompt, directoryPrompt, etc.)
- Loading branch information
Showing
1 changed file
with
51 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters