https://github.com/minhtuannguyen/tmux-jq
tmux wrapper for jq
https://github.com/minhtuannguyen/tmux-jq
curl jq json pretty-printer tmux tmux-jq tmux-plugin
Last synced: 25 days ago
JSON representation
tmux wrapper for jq
- Host: GitHub
- URL: https://github.com/minhtuannguyen/tmux-jq
- Owner: minhtuannguyen
- License: apache-2.0
- Created: 2017-08-16T07:39:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T07:14:11.000Z (about 8 years ago)
- Last Synced: 2025-09-12T07:45:26.972Z (9 months ago)
- Topics: curl, jq, json, pretty-printer, tmux, tmux-jq, tmux-plugin
- Language: Shell
- Size: 6.84 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tmux jq
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.
### Key bindings
In tmux copy mode:
- `prefix + j` performs GET and displays the http resource.
### Examples
In copy mode:
- highlight `http://example.com/path` then press ``prefix + j``
- the json that have been found will be shown.
### Installation with [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) (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.
### Manual Installation
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.