vx0
Visual component editor
Last updated 2 years ago by jxnblk .
MIT · Original npm · Tarball · package.json
$ cnpm install vx0 
SYNC missed versions from official npm registry.

vx0

Vim-inspired visual editor for JSX element trees

npm i -g vx0
vx0 hello.jsx

Modes

Vx0 uses several different modes for editing element trees.

  • normal (cyan)
  • visual (magenta)
  • insert (yellow)
  • edit props (blue)

Keyboard shortcuts

Keyboard shortcuts work differently depending on mode. The current mode will be indicated by the color of the command bar at the bottom and the color of the outline cursor around the current element.

Normal mode

  • j: move cursor down
  • k: move cursor up
  • space: enter visual mode
  • i: enter insert mode
  • e: enter edit props mode
  • esc: exit to normal mode
  • y: yank
  • d: delete
  • p: paste after
  • P: paste before
  • u: undo
  • ctrl+r: redo
  • a: add component
  • e: edit props
  • c: edit color prop
  • b: edit background-color prop
  • f: edit font-size prop

Visual mode

Visual mode currently allows elements to be moved up and down.

  • j: shift element down
  • k: shift element up

Insert mode

Insert mode allows for editing text content. To commit changes, press the esc key.

Edit props mode

Invoking edit props mode will focus the command bar at the bottom. First, type the prop name to edit and press return. Then, type in a value to set the prop and press return.

Current Tags

  • 0.0.7-0                                ...           alpha (2 years ago)
  • 0.0.6                                ...           latest (2 years ago)

7 Versions

  • 0.0.7-0                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 14
Last Day 5
Last Week 9
Last Month 1
Dependencies (30)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |