Posts

Showing posts with the label JSON viewer

Changing the Default Terminal to Terminator on Ubuntu

Image
Terminator is a powerful tool for developers, allowing you to manage multiple terminal sessions in a single window. Features like splitting panes, tabs, and simultaneous input can significantly boost your productivity. Step 1: Install Terminator First, install Terminator using the apt package manager. sudo apt update sudo apt install terminator -y The -y option automatically answers 'yes' to any prompts during the installation process, streamlining the setup. Step 2: Set as the System Default Ubuntu uses a utility called update-alternatives to manage default applications. We'll use this tool to change the default terminal emulator ( x-terminal-emulator ) to Terminator. Run the Configuration Command Enter the following command in your terminal. A list of available terminals will appear. sudo update-alternatives --config x-terminal-emulator Select Terminator From the resulting list, enter the selection number corresponding to terminator and press Enter. ...

Use jq to Format JSON in gVim on Windows (Prettify & Minify)

Image
jq is a powerful command-line tool for processing and formatting JSON data. While there's no official Windows version available anymore, you can still use jq on Windows with an unofficial executable. Step 1: Download the jq Executable Visit the following GitHub release page and download the 64-bit version (jq-win64.exe): https://github.com/jqlang/jq/releases/tag/jq-1.6 Rename from jq-win64.exe to jq.exe and move it to your Vim folder like "C:\Program Files\Vim\vim91" Step 2: Add to System Path Open: Control Panel → System → Advanced system settings → Environment Variables Under “System Variables”, find and select Path, then click “Edit”. Add the following path: C:\Program Files\Vim\vim91 Step 3: Test jq in Terminal Open Command Prompt or PowerShell and run: PS C:\Users\jason> jq --version You should see: jq-1.6 Step 4: Use jq Inside Vim/GVim In Vim/GVim, format the current file using: :%!jq . This sends the whole file through jq and repla...