nvim-jqx
yamlpath
Our great sponsors
nvim-jqx | yamlpath | |
---|---|---|
13 | 9 | |
265 | 109 | |
- | - | |
2.1 | 4.8 | |
about 1 year ago | 2 months ago | |
Lua | Python | |
MIT License | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-jqx
-
nvim-jqx update: bug fix for yaml files + syntax highlight
nvim-jqx is your neovim interface to json and yaml files1: in the last release I have fixed a few bugs introduced by the latest changes in `yq` grammar and have added treesitter syntax highlight to the floating buffer (invoked when querying the json or yaml keys, why I had not done it before already is beyond my memory :p):
-
Share your quickfix workflow
browse json files content (nvim-jqx)
-
nvim-jqx: release v0.1.0 - browse and preview json files in neovim
As far as I know there is no other plugin at the moment that interfaces neovim with json files, and more often than not we see questions here where people suggest to reformat json files via python or some other :%!. Well, with jqx you have it all in one place, so you may find it useful: have a look at the repository and feel free to open up issues with improvements or suggestions!
-
Best way to validate and format json files.
Have you tried nvim-jqx?
-
Cannot formatting JSON with jq in Neovim on Windows
By the way, nvim-jqx can come to your rescue.
-
Vim's Filter and a Badly Formatted JSON Doc
...or you can use nvim-jqx (neovim only though) :p
- JSON path of current cursor position?
-
I love jq, I hate jq. Help a competent grepper get a grasp on the terse language!
P. S. If you are using neovim nvim-jqx is a jq wrapper that populates entries in the quickfix window. Spoiler alert: I am the author (so in this case you can shoot the messenger :p)!
-
(WIP & help wanted) yaml.nvim
Potentially related: nvim-jqx wraps around yq to populate the quickfix window with yaml keys, moreover supporting (limited) queries with autocompletion.
-
What plugins are you using and enjoying the most?
nvim-jqx
yamlpath
-
jq 1.7 Released
A couple more alternatives:
https://github.com/kellyjonbrazil/jello
https://github.com/wwkimball/yamlpath
-
The yaml document from hell
I used the official reference implementation to make a CLI converter between NestedText and TOML, JSON, and YAML. When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
-
The YAML Document from Hell
I'm a huge fan of NestedText, especially as there is no escaping needed ever.
If you ever want to use it as a pre-format to generate either TOML, JSON, or YAML, I used the official reference implementation to make a CLI converter between them and NestedText.
When generating one of these formats, you can use yamlpath queries to concisely but explicitly apply supported types to data elements.
- My CLI converter: https://github.com/AndydeCleyre/nestedtextto
- yamlpath info: https://github.com/wwkimball/yamlpath/wiki/Search-Expression...
-
Replace Specific Lines in a JSON file
Not what you're asking, but if you wanted to do this with yamlpath:
-
jq help: is it possible to replace a key-value in one json file using the data from another json file?
You may want to take a look at yamlpath for this. If I remember when I'm at a computer I'll try to post more.
-
An introduction to the magic of jq - Understanding the basics of jq with a realistic example
I'm no expert in any of these tools, but here are some yamlpath and jello examples to match:
-
Top python libraries/ frameworks that you suggest every one
yamlpath
-
jq error out when parse multiple lines without \n
FWIW, yamlpath (tested with 3.6.4) seems to strip and forgive those characters:
- List of JSON tools for command line
What are some alternatives?
nvim-bqf - Better quickfix window in Neovim, polish old quickfix window.
jiq - jid on jq - interactive JSON query tool using jq expressions
jq - Command-line JSON processor
jinsi - JSON/YAML homoiconic templating language
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
pxi - 🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
yaml.nvim - 🍒 YAML toolkit for Neovim users
taskipy - the complementary task runner for python
up - Ultimate Plumber is a tool for writing Linux pipes with instant live preview
Textrude - Code generation from YAML/JSON/CSV models via SCRIBAN templates
lens.vim - A Vim Automatic Window Resizing Plugin
strictyaml - Type-safe YAML parser and validator.