Skip to content
Myr

fish: Optimize description alignment of completions (#4912)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #4910

authored by bitraid · committed by GitHub · parent ad151d8 · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • other:+5 added−5 removed

2 files+5 added−5 removed

modified:shell/completion.fish+2 added-4 removed
122 unmodified lines
123 end124125 # Determine the tabstop length for description alignment126 set -l -- max_columns (math $COLUMNS - 40)127 for i in $list[1..500]128 set -l -- item (string split -f 1 -- \t $i)129 and set -l -- len (string length -V -- $item)130 and test "$len" -gt "$tabstop" -a "$len" -lt "$max_columns"127 for len in (string match -r -- '^[^\\t]*(?=\\t)' $list[1..500] | string length -V)128 test "$len" -gt "$tabstop" -a "$len" -lt "$max_columns"129 and set -- tabstop $len130 end131 set -- tabstop (math $tabstop + 4)132
35 unmodified lines
modified:CHANGELOG.md+3 added-1 removed
19 unmodified lines
20 ```21 - fzf now opens in a tmux or Zellij floating pane by default, so the window it was started from stays visible and can be used while fzf is running22 - Requires tmux 3.7+ or Zellij 0.44+23 - Set `g:fzf_layout` to pick a different layout24- fish:24- fish: Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498)25 - Fixed custom CTRL-T command not using the prefixed target directory in some cases (#4498)26 - Optimized description alignment of completion items (#4910)27280.74.329------30- Performance optimizations for non-ASCII input
3421 unmodified lines