Styling of completion items #1456
indy-independence
started this conversation in
General
Replies: 1 comment
-
Because of limitations with GNU readline, you can't include ANSI escape sequences in a tab completion match.
For instance, in the following example, you could color the hints (cmd2.egg-info/ cmd2.png), but not the single match on the command line. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to style completion items in the prompt with color/underline etc? In my example I want to complete filenames using builtin path_complete() and then depending on the status of the file I want to display the filename with color/underline. I tried like this:
and then the idea was to remove the formatting characters with precommand or something like that.
However prompt just shows up as: show ^[[32mdevices/d1/interfaces.yml^[[39m
Beta Was this translation helpful? Give feedback.
All reactions