NORMAL ~/wkd/p/data :set skin=modern utf-8

data.nvim

Format and filter structured data (JSON, YAML, XML) in place, in the buffer or a visual selection — pretty, compact (JSON/XML), lines to flatten nested keys onto one path: value per line, keys for just the paths.

status
beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
category
Editing
neovim
0.9+
repo
github.com/WKDSteve/data.nvim
commits
85
help
:help data

demo

recorded with VHS from demos/data.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. :JSON - pretty-print in place
  2. :JSON sort - sorted keys
  3. :JSON lines - one path per leaf
  4. :JSON to yaml

install

{
  "WKDSteve/data.nvim",
  opts = {},
}

docs/

git log

  1. test sheets: the question over the --preview diff survives a focus change, Esc discards
  2. docs readme: connections to the other repos of the workshop, as a picture and a list
  3. docs readme: the icon of the plugin on top, the files in assets/icons/data-nvim
  4. test a test dependency that fails to load is red, not zero cases (NEW-43)
  5. test sheets: the feature catalog, and the sheets name their feature
  6. chore scripts: scripts/test.sh from the current template (stopping it reaches nvim, lint subcommand)
  7. test preview: a dialog that replaces the question discards and closes the preview
  8. preview a focus change over the diff preview no longer discards
  9. test sheets: the :XML range step checks the line it acts on; no-match waits for its warning
  10. test sheets: filter --preview of :YAML, :XML and :Data, and a range on bare :Data
  11. test sheets: :JSON, :YAML, :XML and :Data as typed, every action of the bindings checklist
  12. fix infer: keep a field optional when merged schemas are merged again; infinity is a number

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search plugins and apps (app: x or plugin: x narrows)
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :apps · :play · :log · :stack
plugin list · app list · play area · activity stream · dependency graph
:log apps
the stream of one area (plugins or apps)
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close