nvim-jqx
Textrude
Our great sponsors
nvim-jqx | Textrude | |
---|---|---|
13 | 4 | |
265 | 117 | |
- | - | |
2.1 | 7.8 | |
about 1 year ago | 7 days ago | |
Lua | C# | |
MIT License | MIT 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
Textrude
-
Is there a source generator that generates poco classes from a JSON schema?
Fair point - source generators can run arbitrary code so yes, they can read a json file and then spit out something else in response. If you want to translate the json schema into the equivalent C# you'll need to write a small amount of code to deserialize the json into a JObject tree, walk it, and emit c# code. I do something similar in my Textrude code-generation/templating project except I'm translating the tree into an equivalent Scriban object tree. The relevant source code is here. All that said, this is a fairly specialised and common task - I can't believe there's not a command line tool to do this already.
-
List of JSON tools for command line
Plug for something I wrote: [github link]*https://github.com/NeilMacMullen/Textrude). The CLI version can pipe json (or yaml,csv or text lines) from stdin or fetch it from a URL then turn it into model and apply a Scriban template to it to emit text to stdout. Runs on Linux or Windows and also comes with an interactive UI prototyping tool.
- Textrude - a template-based code/text-generation tool. Easy transformation of JSON/YAML/CSV models into code/text using Scriban templates.
- General-purpose code-generation tool, with support for data sources like yaml/csv/etc and a template language
What are some alternatives?
nvim-bqf - Better quickfix window in Neovim, polish old quickfix window.
NTypewriter - File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
jq - Command-line JSON processor
pxi - 🧚 pxi (pixie) is a small, fast, and magical command-line data processor similar to jq, mlr, and awk.
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
yamlpath - YAML/JSON/EYAML/Compatible get/set/merge/validate/scan/convert/diff processors using powerful, intuitive, command-line friendly syntax.
yaml.nvim - 🍒 YAML toolkit for Neovim users
fx - Terminal JSON viewer & processor
up - Ultimate Plumber is a tool for writing Linux pipes with instant live preview
jj - JSON Stream Editor (command line utility)
lens.vim - A Vim Automatic Window Resizing Plugin
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.