Open simonLeary42 opened 1 week ago
here's my theme:
while looking at my theme I noticed that all the filename_*
styles are not actually in effect since I set bleopt filename_ls_colors=$LS_COLORS
.
how to change the style of the filtered prefix in the autocomplete menu?
ble.sh doesn't provide the configuration interface for this.
it's shown as bold, but I'd like it to pop a bit more.
Unless it doesn't have a functional issue, I'd call it a preference. As I've explained in https://github.com/akinomyoga/ble.sh/issues/518#issuecomment-2401155760, I'm reluctant to add an option for every preference. If you want to adjust the behavior, you can modify ble.sh. The code that boldfaces the matching part is contained in the shell function ble/complete/menu-complete.class/render-item
.
Looking around
ble-face
I saw that there is a highlight on the input line calledmenu_filter_input
, and I saw thatmenu_filter_fixed
was equal tobold
. But then I changedmenu_filter_fixed
and nothing happened.
The faces menu_filter_input
and menu_filter_fixed
are unrelated to the faces used to show the menu items. As their names contain menu_filter
, they are the faces for the menu_filter
feature.
while looking at my theme I noticed that all the
filename_*
styles are not actually in effect since I setbleopt filename_ls_colors=$LS_COLORS
.
Yes, it's documented.
I'm reluctant to add an option for every preference.
If there are other reasons I might implement it (e.g. if other shells have a similar configuration). Hmm, Fish's fish_pager_color_prefix
seems to be that.
It's not that I want to make it pretty, it's that it's difficult to read, I have to squint. In my case it's filenames with unix timestamps in them, so a long string of numbers with a common prefix. I have to look at the files in the autocomplete menu, find the border between "already typed" and "not typed yet", and then find out which file is newer by comparing the first number to the right of said border.
GNU readline colors this prefix when colored-completion-prefix
is enabled, and for some reason it uses the value from LS_COLORS
for a socket.
It's not that I want to make it pretty, it's that it's difficult to read, I have to squint.
That seems to imply that the boldface in your terminal is always difficult to distinguish from the normal font width, and thus it seems an issue with the terminal font setting.
GNU readline colors this prefix when
colored-completion-prefix
is enabled, and for some reason it uses the value fromLS_COLORS
for a socket.
The information in the link seems to be old. Bash >= 5.2 has the *.readline-colored-completion-prefix
entry in LS_COLORS
for the Readline setting colored-completion-prefix on
.
Since fish and readline seem to support something, I'll add something, but it may take time. I'm busy.
it's shown as bold, but I'd like it to pop a bit more. Looking around
ble-face
I saw that there is a highlight on the input line calledmenu_filter_input
, and I saw thatmenu_filter_fixed
was equal tobold
. But then I changedmenu_filter_fixed
and nothing happened. No other style inble-face
usesbold
.