sponsor Vim development Vim logo Vim Book Ad

vim-jqplay : Run jq interactively in Vim

 script karma  Rating 0/0, Downloaded by 37  Comments, bugs, improvements  Vim wiki

created by
foo bar
 
script type
utility
 
description
Run jq on a json buffer, and interactively update the output window whenever the input buffer or the jq filter buffer are modified similar to jqplay.org.

Commands:

    :Jqplay [{args}] -- Start an interactive session using the current json buffer and the jq options {args}.
    :JqplayScratch [{args}] -- Like :Jqplay but creates a new scratch buffer as input.
    :JqplayScratch! [{args}] -- Like :JqplayScratch but forces --null-input and doesn't pass any input to jq.

Once an interactive session was started the following commands are available:

    :JqplayClose[!] -- Stop the interactive session. Add a ! to also delete all associated scratch buffers.
    :Jqrun [{args}] -- Invoke jq manually with the jq options {args}.
    :Jqstop -- Terminate a running jq process started by this plugin.

https://github.com/bfrg/vim-jqplay
 
install details
Run the following in your terminal:

    cd ~/.vim/pack/git-plugins/start
    git clone https://github.com/bfrg/vim-jqplay
    vim -u NONE -c 'helptags vim-jqplay/doc | quit'

Note: The directory name git-plugins is arbitrary, you can pick any other name. For more details see :help packages.

Alternatively, use your favorite plugin manager.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-jqplay.tar.gz 1.0 2021-07-23 8.1 foo bar Initial upload
ip used for rating: 3.215.177.171

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN