vixl44

October 24, 2017 ยท View on GitHub

Logo

vixl44

Create pixel art inside your terminal using vim movements

Installation

Get go, then:

go get github.com/sebashwa/vixl44

Usage

~/go/bin/vixl44 [OPTIONS] [FILENAME]

FILENAME

    the name of your file

OPTIONS

-c, --cols
    number of columns, default is 20, 0 means full width, ignored if name of existing file given
-r, --rows
    number of rows, default is 20, 0 means full height, ignored if name of existing file given

Keybindings

Movement

KeysAction
h,j,k,lMove cursor left, down, up, right
wMove cursor 5 columns right
bMove cursor 5 columns left
Ctrl-dMove cursor 5 rows down
Ctrl-uMove cursor 5 rows up

Normal Mode

KeysAction
Space, ReturnPaint color
sSelect color under the cursor
fReplace color in area (Flood fill)
uUndo change
Ctrl-rRedo change
pPaste from buffer
cSwitch to palette mode
Ctrl-vSwitch to visual block mode

Visual Block Mode

KeysAction
Space, ReturnPaint color
x, dCut area
yCopy area
EscSwitch to normal mode
cSwitch to palette mode

Palette Mode

KeysAction
Space, ReturnSelect color
EscSwitch to normal mode
Ctrl-vSwitch to visual block mode

Commands

:w FILENAME<CR>         - Write to FILENAME
:wq FILENAME<CR>        - Write to FILENAME and quit
:exp FILENAME.svg<CR>   - Export to FILENAME in svg format
:exp FILENAMExN.png<CR> - Export to FILENAME in png format with an optional scale factor N
:exp FILENAME.ansi<CR>  - Export ANSI escape sequences to FILENAME (use i.e. cat FILENAME to view it)
:q<CR>                  - Quit

License

This project is free software: You can redistribute it and/or modify it under the terms of the GNU General Public License, either version 3 of the License, or (at your option) any later version.