Initial commit
This commit is contained in:
45
README.md
Normal file
45
README.md
Normal file
@@ -0,0 +1,45 @@
|
||||
# Dive
|
||||
|
||||
Dive is a Vim-like text editor using ncurses.
|
||||
|
||||
## Usage
|
||||
|
||||
dive file.txt
|
||||
|
||||
## Compiling
|
||||
|
||||
fish build.fish
|
||||
|
||||
## Supported actions
|
||||
|
||||
Ctrl+C exits the editor anywhere.
|
||||
|
||||
### Normal Mode
|
||||
|
||||
* Move around with arrow keys or hjkl
|
||||
* Use i to enter insert mode
|
||||
* Use a to enter insert mode, moving the cursor forward
|
||||
* Use o to enter insert mode, with a blank line below the currently selected one
|
||||
* Use : or ; to enter command mode
|
||||
|
||||
### Insert Mode
|
||||
|
||||
* Use ESC to get back to Normal Mode
|
||||
* Use arrow keys to move around
|
||||
* Type to type things in
|
||||
* Backspace to delete the character before the cursor, or to merge 2 lines when cursor is at the start of a line
|
||||
* Enter to split the current line in half
|
||||
|
||||
### Command Mode
|
||||
|
||||
* Use ESC to get back to Normal Mode
|
||||
* Type to type a command into the minibuffer
|
||||
* Enter to run the command
|
||||
|
||||
Commands:
|
||||
|
||||
* q, quit: Quits Dive, forgetting any changes.
|
||||
* w, write: Writes changes to the file provided
|
||||
|
||||
|
||||
Enjoy!
|
||||
Reference in New Issue
Block a user