jqr for jq preview repl

based on: https://gist.github.com/reegnz/b9e40993d410b75c2d866441add2cb55
This commit is contained in:
Noah Masur 2024-11-16 22:25:39 -07:00
parent ca1c7cc23f
commit 7007577176
No known key found for this signature in database

View File

@ -59,6 +59,10 @@
description = "Tidy up JSON using jq";
body = "pbpaste | jq '.' | pbcopy"; # Need to fix for non-macOS
};
jqr = {
description = "jq repl for constructing jq syntax";
body = "echo '' | fzf --query '.' --print-query --preview \"jq {q} < $argv\"";
};
note = {
description = "Edit or create a note";
argumentNames = "filename";