Anthony Sottile b08f533554 Make selection render like visual mode in vim
Note that this causes trailing whitespace if you copy out of the pane with
the mouse.  This is the same as how vim renders this though.  nano takes a
different approach which doesn't result in trailing whitespace, but I find it
more difficult to see whether the ends of lines are highlighted.

If later I want the nano behaviour, remove the `+ 1`s in this patch.
2020-01-05 07:35:12 -08:00
2019-12-21 23:13:46 -08:00
2020-01-04 12:04:04 -08:00
2019-11-02 15:30:42 -07:00
2019-11-09 13:33:30 -08:00
2019-11-02 15:30:42 -07:00
2019-09-28 06:57:29 -07:00
2019-11-10 17:22:29 -08:00
2019-11-14 17:55:26 -08:00
2019-10-23 18:53:27 -07:00
2019-11-10 17:20:47 -08:00
2019-09-01 19:25:44 -07:00

Build Status Azure DevOps coverage

babi

a text editor, eventually...

why is it called babi?

I usually use the text editor nano, frequently I typo this. on a qwerty keyboard, when the right hand is shifted left by one, nano becomes babi.

quitting babi

currently you can quit babi by using ^X (or via Esc + :q).

demos

not much works yet, here's a few things

color test (babi --color-test)

this is just to demo color support, this test mode will probably be deleted eventually. it uses a little trick to invert foreground and background to get all of the color combinations. there's one additional color not in this grid which is the "inverted default"

file view

this opens the file, displays it, and can be edited in some ways and can save! movement is currently enabled through the arrow keys, home + ^A, end + ^E, and some key combinations are detected. unknown keys are displayed as errors in the status bar. babi will scroll if the cursor goes off screen either from resize events or from movement. babi can edit multiple files. babi has a command mode (so you can quit it like vim :q!).

Description
a text editor
Readme 571 KiB
Languages
Python 99.3%
JavaScript 0.6%