diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-11 10:14:53 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-11 10:14:53 +0100 |
commit | c0cd4cdf78886040528b16fad084a14165a16384 (patch) | |
tree | 82788f09527c91060cea22246f1af9a2572ce655 /src/main.c | |
parent | 7c31982244f179cb2f51bb1d81b21ad4efd649ba (diff) |
Add compgen caching.
A list of commands is now stored in $XDG_CACHE_HOME/.cache/tofi-compgen,
and regenerated as necessary.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -584,7 +584,7 @@ int main(int argc, char *argv[]) log_debug("Generating command list.\n"); log_indent(); tofi.window.entry.history = history_load(); - tofi.window.entry.commands = compgen(); + tofi.window.entry.commands = compgen_cached(); compgen_history_sort(&tofi.window.entry.commands, &tofi.window.entry.history); tofi.window.entry.results = string_vec_copy(&tofi.window.entry.commands); log_unindent(); |