Git Product home page Git Product logo

jet's Introduction

Jet - A Structural JSON editor

Jet is a structural editor for JSON.

I.e. an editor which is aware of the structure of JSON and allows you to manipulate it directly. The document is always in a valid state.

demo.mov

Features

  • Structurally sound editing, never outputs invalid JSON.
  • Copy/Cut/Paste JSON subtrees
  • Subtree folding so you can focus on what's important.
  • Transpose values around each other in lists.
  • Undo/redo system, everyone makes mistakes
  • Save functionality

Keymaps

Press ? to see the key map, which should feel familiar to vim users.

Installation

cabal update && cabal install jet

Usage

# Open a file for editing. Use ctrl-s to save back to the file.
# The edited file is output to stdout even if unsaved.
jet myfile.json 

# Using jet in a pipeline for quick in-line edits.
cat myfile.json | jet > result.json

Roadmap/Known bugs

  • Figure out why vty needs two keystrokes to quit for some reason.
  • Allow cut/paste of keys of objects.
  • Allow inserting when empty key already exists
  • Add search
  • Improved visibility around copy/paste with highlighting
  • Increment/decrement commands for integers.

jet's People

Contributors

chrispenner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.