From 700757717663371b091e2127614f42da9db15804 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:25:39 -0700 Subject: [PATCH] jqr for jq preview repl based on: https://gist.github.com/reegnz/b9e40993d410b75c2d866441add2cb55 --- modules/common/shell/fish/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/shell/fish/default.nix b/modules/common/shell/fish/default.nix index 1e5e7f8..029bf2a 100644 --- a/modules/common/shell/fish/default.nix +++ b/modules/common/shell/fish/default.nix @@ -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";