1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 07:07:46 +00:00

FEATURE: add some fuzzy keybindings (#512)

* add `history`, `directories` and `modules` fuzzy keybindings

* add a little README for the bindings
This commit is contained in:
Antoine Stevan 2023-05-26 20:33:37 +02:00 committed by GitHub
parent 394e625837
commit c698547b3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{
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):'
)"
}
}