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:
parent
394e625837
commit
c698547b3b
4 changed files with 61 additions and 0 deletions
16
custom-menus/fuzzy/directory.nu
Normal file
16
custom-menus/fuzzy/directory.nu
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
name: fuzzy_dir
|
||||
modifier: control
|
||||
keycode: char_s
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
event: {
|
||||
send: executehostcommand
|
||||
cmd: "commandline -a (
|
||||
ls **/*
|
||||
| where type == dir
|
||||
| get name
|
||||
| input list --fuzzy
|
||||
$'Please choose a (ansi magenta)directory(ansi reset) to (ansi cyan_underline)insert(ansi reset):'
|
||||
)"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue