An open API service indexing awesome lists of open source software.

https://github.com/chuanqisun/vibe-html

A keyboard first mock up editor
https://github.com/chuanqisun/vibe-html

Last synced: 6 months ago
JSON representation

A keyboard first mock up editor

Awesome Lists containing this project

README

          

## Templates

- [empty.html](./empty.html): A blank template with no elements.
- [vibe.html](./vibe.html): A basic app layout

## Keyboard Shortcuts

| Shortcut | Description |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| ? | Open help |
| Ctrl/Cmd + Z | Undo |
| Ctrl/Cmd + Shift + Z | Redo |
| S | Split selected element |
| Shift + Enter | Select parent element |
| Enter | Select first child element |
| C | Convert `

` or `` to `` |
| R | Convert `
` or `` to `` |
| Ctrl/Cmd + D | Duplicate selected element (paste clone before selection) |
| Alt + Shift + ArrowDown | Duplicate selected element (paste clone before selection) |
| Alt + Shift + ArrowUp | Duplicate selected element (paste clone after selection) |
| H | Toggle `hug` attribute on selected element |
| F | Toggle `fill` attribute on selected element |
| W | Toggle `wrap` attribute on selected element (convert to `` if needed) |
| M | Toggle `max` attribute on selected element |
| A | Add child `` element |
| L | Toggle `scroll` attribute on selected element |
| 0 | Unset `fill` attribute |
| 14 | Set `fill` attribute to corresponding number |
| G | Group selected elements into a new `` or `` |
| ArrowLeft/ArrowUp | Select previous sibling element |
| ArrowRight/ArrowDown | Select next sibling element |
| Alt + ArrowLeft/ArrowUp | Move selected element up/left |
| Alt + ArrowRight/ArrowDown | Move selected element down/right |
| Tab | Select next element (pre-order traversal) |
| Shift + Tab | Select previous element (reverse pre-order traversal) |
| X | Cut (remove) selected elements |
| I | Toggle `contenteditable="plaintext-only"` (edit mode) |
| Escape | Exit edit mode (remove `contenteditable`) |

## Open Source

Vist [GitHub](https://github.com/chuanqisun/vibe-html)