Plugin for doing pretty-printing json resources in the Tmux copy mode. tmux-jq
uses curl
and jq
to get the http resource of links saved in the tmux buffer and shows it by using jq.
In tmux copy mode:
prefix + j
performs GET and displays the http resource.
In copy mode:
- highlight
http://example.com/path
then pressprefix + j
- the json that have been found will be shown.
Installation with Tmux Plugin Manager (recommended)
Add plugin to the list of TPM plugins in .tmux.conf
:
set -g @plugin 'minhtuannguyen/tmux-jq'
Hit prefix + I
to fetch the plugin and source it. You should now be able to
use the plugin.
Clone the repo:
$ git clone https://github.com/minhtuannguyen/tmux-jq.git ~/clone/path
Add this line to the bottom of .tmux.conf
:
run-shell ~/clone/path/jq.tmux
Reload TMUX environment:
# type this in terminal
$ tmux source-file ~/.tmux.conf
You should now be able to use the plugin.