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

* add `history`, `directories` and `modules` fuzzy keybindings * add a little README for the bindings
17 lines
418 B
Text
17 lines
418 B
Text
{
|
|
name: fuzzy_history
|
|
modifier: control
|
|
keycode: char_h
|
|
mode: [emacs, vi_normal, vi_insert]
|
|
event: {
|
|
send: executehostcommand
|
|
cmd: "commandline (
|
|
history
|
|
| each { |it| $it.command }
|
|
| uniq
|
|
| reverse
|
|
| input list --fuzzy
|
|
$'Please choose a (ansi magenta)command from history(ansi reset):'
|
|
)"
|
|
}
|
|
}
|