3 ms·
Loved it! I made this version for `fish` and `wl-clipboard`: function clipboard-format-json # Inspired by https://chris48s.github.io/blogmarks/post
by bilkow 1mo ago
Loved it! I made this version for `fish` and `wl-clipboard`:
function clipboard-format-json
# Inspired by https://chris48s.github.io/blogmarks/posts/2021/jsontidy/
if set -l formatted "$(wl-paste | jq '.')"
wl-copy $formatted
end
end
By saving it to .config/fish/functions/clipboard-format-json.fish, it should immediately work