mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00

This PR is part of porting all old scripts #221 and includes a set of modules: - fuzzy -> `modules/fuzzy/fuzzy_command_search.nu` - ls-mods -> `modules/ls-mods`: `ls-less.nu`, `ls-wide.nu` and `ls-wide-with-color.nu` - nu_101 -> `modules/nu_101`: `nothing.nu` and `inner_outer_loop.nu` Edit: `fuzzy` and `nu_101` have been moved to `sourced`
954 B
954 B
Fuzzy all the things
Purpose
This contains a few scripts that add fuzzy search interfaces to built-in nu functionalities. Often you want to search commands/your history interactively, which is where fzf excels at.
How to use
./fuzzy_history_search.nu
searches your command history and, after pressing enter
, copies the selected command into the clipboard
./fuzzy_command_search.nu
searches both commands and subcommands for both a) names and b) their description, and, after pressing enter
, copies the selected command into the clipboard
To use them in your day-to-day workflow, add
source <absolute-path-to-nu_scripts>/fuzzy/fuzzy_history_search.nu
source <absolute-path-to-nu_scripts>/fuzzy/fuzzy_command_search.nu
to your config.nu
It's likely a good idea to also add some short and sweet aliases, e.g.
alias hi = fuzzy-history-search
alias hf = fuzzy-command-search