emacs-esque text editor written in Go.
Uses https://github.com/nsf/godit as it's base.
--== List of keybindings ==--
Basic things:
- C-g - Universal cancel button
- C-x C-c - Quit from the godit
- C-x C-s - Save file [prompt maybe]
- C-x S - Save file (raw) [prompt maybe]
- C-x M-s - Save file as [prompt]
- C-x M-S - Save file as (raw) [prompt]
- C-x C-f - Open file
- M-g - Go to line [prompt]
- C-/ - Undo
- C-x C-/ (C-/...) - Redo
View/buffer operations:
- C-x C-w - View operations mode
- C-x 0 - Kill active view
- C-x 1 - Kill all views but active
- C-x 2 - Split active view vertically
- C-x 3 - Split active view horizontally
- C-x o - Make a sibling view active
- C-x b - Switch buffer in the active view [prompt]
- C-x k - Kill buffer in the active view
View operations mode:
- v - Split active view vertically
- h - Split active view horizontally
- k - Kill active view
- C-f, - Expand/shrink active view to the right
- C-b, - Expand/shrink active view to the left
- C-n, - Expand/shrink active view to the bottom
- C-p, - Expand/shrink active view to the top
- 1, 2, 3, 4, ... - Select view
Cursor/view movement and text editing:
- C-f, - Move cursor one character forward
- M-f - Move cursor one word forward
- C-b, - Move cursor one character backward
- M-b - Move cursor one word backward
- C-n, - Move cursor to the next line
- C-p, - Move cursor to the previous line
- C-e, - Move cursor to the end of line
- C-a, - Move cursor to the beginning of the line
- C-v, - Move view forward (half of the screen)
- M-v, - Move view backward (half of the screen)
- C-l - Center view on line containing cursor
- C-s - Search forward [interactive prompt]
- C-r - Search backward [interactive prompt]
- C-j - Insert a newline character and autoindent
- - Insert a newline character
- - Delete one character backwards
- C-d, - Delete one character in-place
- M-d - Kill word
- M- - Kill word backwards
- C-k - Kill line
- M-u - Convert the following word to upper case
- M-l - Convert the following word to lower case
- M-c - Capitalize the following word
- - Insert character
Mark and region operations:
- C- - Set mark
- C-x C-x - Swap cursor and mark locations
- C-x > (>...) - Indent region (lines between the cursor and the mark)
- C-x < (<...) - Deindent region (lines between the cursor and the mark)
- C-x C-r - Search & replace (within region) [prompt]
- C-x C-u - Convert the region to upper case
- C-x C-l - Convert the region to lower case
- C-w - Kill region (between the cursor and the mark)
- M-w - Copy region (between the cursor and the mark)
- C-y - Yank (aka Paste) previously killed/copied text
- M-q - Fill region (lines between the cursor and the mark) [prompt]
Advanced:
- M-/ - Local words autocompletion
- C-x C-a - Invoke buffer specific autocompletion menu [menu]
- C-x ( - Start keyboard macro recording
- C-x ) - Stop keyboard macro recording
- C-x e (e...) - Stop keyboard macro recording and execute it
- C-x = - Info about character under the cursor
- C-x ! - Filter region through an external command [prompt]