Comment

Comment by bilkow

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
parent bilkow 1 month ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton