mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 09:54:53 +00:00
jqr for jq preview repl
based on: https://gist.github.com/reegnz/b9e40993d410b75c2d866441add2cb55
This commit is contained in:
parent
ca1c7cc23f
commit
7007577176
@ -59,6 +59,10 @@
|
|||||||
description = "Tidy up JSON using jq";
|
description = "Tidy up JSON using jq";
|
||||||
body = "pbpaste | jq '.' | pbcopy"; # Need to fix for non-macOS
|
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 = {
|
note = {
|
||||||
description = "Edit or create a note";
|
description = "Edit or create a note";
|
||||||
argumentNames = "filename";
|
argumentNames = "filename";
|
||||||
|
Loading…
Reference in New Issue
Block a user