Adds key combinations for fuzzy search
Currently: * ctrl-n - new file from query * ctrl-o - view file * ctrl-e - edit file * ctrl-d - delete file close #11
This commit is contained in:
parent
caab854c09
commit
f8d04a304a
2 changed files with 46 additions and 19 deletions
|
@ -109,3 +109,14 @@ deleteFile(){
|
|||
fi
|
||||
}
|
||||
|
||||
viewFile(){
|
||||
cd "$dataDir" || return
|
||||
|
||||
local id="$1"
|
||||
local filename
|
||||
|
||||
filename="$(findFile "$id")"
|
||||
|
||||
bat --color=always --style=full "$filename"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue