1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00
nu_scripts/modules/fuzzy
ff2400t b5385a2af0
in commands table rename usage to description (#990)
`usage` column under the `scope commands` table has been renamed to
description since nushell version 0.98.0
2024-12-08 07:27:33 -06:00
..
fuzzy_command_search.nu in commands table rename usage to description (#990) 2024-12-08 07:27:33 -06:00
fuzzy_history_search.nu Port before_v0.60/fuzzy, before_v0.60/ls-mods and before_v0.60/nu_101 (#845) 2024-05-26 12:35:59 -05:00
README.md Port before_v0.60/fuzzy, before_v0.60/ls-mods and before_v0.60/nu_101 (#845) 2024-05-26 12:35:59 -05: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_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