config: disable match-counter by default
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Daniel Eklöf · committed by Daniel Eklöf · parent 63c3c72 · Browse files · 8 files·+19 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+19 added−18 removed
- other:+19 added−18 removed
Provenance
- Commit
11ad859- Tree
c829054- Author
Daniel Eklöf <daniel@ekloef.se>- Committer
Daniel Eklöf <daniel@ekloef.se>- Parent
63c3c72
8 files changed+19 added−18 removed
modified:completions/fish/fuzzel.fish+1 added-1 removed
50 unmodified lines51 complete -c fuzzel -x -s C -l border-color -d "border color (002b36ff)"52 complete -c fuzzel -l show-actions -d "include desktop actions (e.g. \"New Window\") in the list"53 complete -c fuzzel -x -l match-mode -a "exact fzf fuzzy" -d "how to match what you type against the entries"54 complete -c fuzzel -l no-sort -d "do not sort the result"55-complete -c fuzzel -l no-counter -d "do not display the match count"55+complete -c fuzzel -l counter -d "display the match count"56 complete -c fuzzel -l filter-desktop -d "filter desktop entries based on XDG_CURRENT_DESKTOP"57 complete -c fuzzel -l list-executables-in-path -d "list executables present in the path environment variable"58 complete -c fuzzel -x -l fuzzy-min-length -d "search strings shorter than this will not be fuzzy matched (3)"59 complete -c fuzzel -x -l fuzzy-max-length-discrepancy -d "maximum allowed length difference between the search string and a fuzzy match (2)"17 unmodified linesmodified:completions/zsh/_fuzzel+1 added-1 removed
42 unmodified lines43 '(-C --border-color)'{-C,--border-color}'[border color (002b36ff)]:border-color:()' \44 '--show-actions[include desktop actions (e.g "New Window") in the list]' \45 '--match-mode[how to match what you type against the entries (fzf)]:match_mode:(exact fzf fuzzy)' \46 '--no-sort[do not sort the result]' \47- '--no-counter[do not display the match count]' \47+ '--counter[display the match count]' \48 '--filter-desktop=-[filter desktop entries based on XDG_CURRENT_DESKTOP]: :(no)' \49 '--list-executables-in-path[list executables present in the PATH environment variable]'\50 '--fuzzy-min-length[search strings shorter than this will not be fuzzy matched (3)]:()' \51 '--fuzzy-max-length-discrepancy[maximum allowed length difference between the search string and a fuzzy match (2)]:()' \35 unmodified linesmodified:doc/fuzzel.1.scd+2 added-2 removed
255 unmodified lines256 257 *--no-sort*258 Do not sort the result.259 260-*--no-counter*261- Do not display the match count.260+*--counter*261+ Display the match count.262 263 *--filter-desktop*=[_no_]264 Filter the visible desktop entries based on the value of265 XDG_CURRENT_DESKTOP. If the optional parameter is "no",172 unmodified linesmodified:doc/fuzzel.ini.5.scd+1 added-1 removed
168 unmodified lines169 displayed on the right-hand side of the input prompt. Disabling170 the counter also improves performance when loading a very large171 number of dmenu entries from STDIN.172 173- Default: _yes_.173+ Default: _no_.174 175 *filter-desktop*176 Boolean. Filter desktop files based on the value of XDG_CURRENT_DESKTOP.177 358 unmodified linesmodified:CHANGELOG.md+4 added-3 removed
64 unmodified lines65 option in `fuzzel.ini`.66 * `delayed-filter-ms`, `delayed-filter-limit` options to `fuzzel.ini`,67 and `--delayed-filter-ms` and `--delayed-filter-limit` command line68 options.69-* Match count is now printed at the right-hand side of the input70- prompt. This can be disabled with the `--no-counter` command line71- option, or the `match-counter` setting in `fuzzel.ini`.69+* Match count can now printed at the right-hand side of the input70+ prompt. It is disabled by default, and can be enabled with either71+ the `--counter` command line option, or the `match-counter` setting72+ in `fuzzel.ini`.73 * `--counter-color` and `colors.counter`, controlling the color of the74 match count. The default value is `93a1a1ff` (_base1_ in the75 solarized palette).76 * The currently selected entry may now be rendered with a bold724 unmodified linesmodified:config.c+1 added-1 removed
1618 unmodified lines1619 .icon_theme = strdup("hicolor"),1620 .actions_enabled = false,1621 .match_mode = MATCH_MODE_FZF,1622 .sort_result = true,1623- .match_counter = true,1623+ .match_counter = false,1624 .delayed_filter_ms = 300,1625 .delayed_filter_limit = 20000,1626 .fuzzy = {1627 .min_length = 3,129 unmodified linesmodified:fuzzel.ini+1 added-1 removed
9 unmodified lines10 # password-character=*11 # filter-desktop=no12 # match-mode=fzf13 # sort-result=yes14-# match-counter=yes14+# match-counter=no15 # delayed-filter-ms=30016 # delayed-filter-limit=2000017 # show-actions=no18 # terminal=$TERMINAL -e # Note: you cannot actually use environment variables here97 unmodified linesmodified:main.c+8 added-8 removed
382 unmodified lines383 " --list-executables-in-path include executables from PATH in the list\n"384 " --render-workers=N number of threads to use for rendering\n"385 " --match-workers=N number of threads to use for matching\n"386 " --no-sort do not sort the result\n"387- " --no-counter do not display the match count\n"387+ " --counter display the match count\n"388 " --delayed-filter-ms=TIME_MS time in ms before refiltering after a keystroke\n"389 " (300)\n"390 " --delayed-filter-limit=N used delayed refiltering when the number of\n"391 " matches exceeds this number (10000)\n"328 unmodified lines720 #define OPT_DELAYED_FILTER_LIMIT 290721 #define OPT_PLACEHOLDER 291722 #define OPT_PLACEHOLDER_COLOR 292723 #define OPT_SEARCH_TEXT 293724- #define OPT_NO_COUNTER 294724+ #define OPT_COUNTER 294725 726 static const struct option longopts[] = {727 {"config", required_argument, 0, OPT_CONFIG},728 {"check-config", no_argument, 0, OPT_CHECK_CONFIG},48 unmodified lines777 {"list-executables-in-path", no_argument, 0, OPT_LIST_EXECS_IN_PATH},778 {"render-workers", required_argument, 0, OPT_RENDER_WORKERS},779 {"match-workers", required_argument, 0, OPT_MATCH_WORKERS},780 {"no-sort", no_argument, 0, OPT_NO_SORT},781- {"no-counter", no_argument, 0, OPT_NO_COUNTER},781+ {"counter", no_argument, 0, OPT_COUNTER},782 {"delayed-filter-ms", required_argument, 0, OPT_DELAYED_FILTER_MS},783 {"delayed-filter-limit", required_argument, 0, OPT_DELAYED_FILTER_LIMIT},784 785 /* dmenu mode */66 unmodified lines852 bool no_sort_set:1;853 bool delayed_filter_ms_set:1;854 bool delayed_filter_limit_set:1;855 bool placeholder_color_set:1;856- bool no_counter_set:1;856+ bool counter_set:1;857 } cmdline_overrides = {{0}};858 859 setlocale(LC_CTYPE, "");860 setlocale(LC_MESSAGES, "");700 unmodified lines1561 cmdline_overrides.conf.sort_result = false;1562 cmdline_overrides.no_sort_set = true;1563 break;1564 1565- case OPT_NO_COUNTER:1566- cmdline_overrides.conf.match_counter = false;1567- cmdline_overrides.no_counter_set = true;1565+ case OPT_COUNTER:1566+ cmdline_overrides.conf.match_counter = true;1567+ cmdline_overrides.counter_set = true;1568 break;1569 1570 case OPT_DELAYED_FILTER_MS:1571 if (sscanf(optarg, "%u", &cmdline_overrides.conf.delayed_filter_ms) != 1) {179 unmodified lines1751 if (cmdline_overrides.match_workers_set)1752 conf.match_worker_count = cmdline_overrides.conf.match_worker_count;1753 if (cmdline_overrides.no_sort_set)1754 conf.sort_result = cmdline_overrides.conf.sort_result;1755- if (cmdline_overrides.no_counter_set)1755+ if (cmdline_overrides.counter_set)1756 conf.match_counter = cmdline_overrides.conf.match_counter;1757 if (cmdline_overrides.delayed_filter_ms_set)1758 conf.delayed_filter_ms = cmdline_overrides.conf.delayed_filter_ms;1759 if (cmdline_overrides.delayed_filter_limit_set)212 unmodified lines