nu_scripts/before_v0.60/fuzzy
2022-02-25 13:10:38 -06:00
..
fuzzy_command_search.nu reorganize site in preparation for beta and releaes (#161) 2022-02-25 13:10:38 -06:00
fuzzy_history_search.nu reorganize site in preparation for beta and releaes (#161) 2022-02-25 13:10:38 -06:00
README.md reorganize site in preparation for beta and releaes (#161) 2022-02-25 13:10:38 -06:00

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_script>/fuzzy/fuzzy_history_search.nu", 
    "source <absolute-path-to-nu_script>/fuzzy/fuzzy_command_search.nu"
]

to your startup array in you config .toml.

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

To your config