Commit 173885a7 authored by Ticki's avatar Ticki

Add 'B' command, start help.txt

parent 1a987107
- [ ] Add .to_motion() function (function producing motion from commands)
- [ ] Add status bar
- [ ] Add highlighting
- [ ] Add `B` command
- [ ] Fix `d<motion>`
- [ ] Complete guide
- [ ] Add command prompt
- [ ] Add configuration options
......@@ -104,6 +104,11 @@ impl Editor {
let cursor = self.cursor().clone();
self.cursors.push(cursor);
},
Char('B') => {
// Delete cursor
self.cursors.remove(self.current_cursor as usize);
self.next_cursor();
},
// ????
// Char('K') => {
// self.goto((0, 0));
......
Sodium
Sodium: A modern editor for the Redox OS
========================================
Sodium is a editor inspired by a various
console based, keyboard-centric editor.
The keybindings are loosly based on Vim.
This is a small guide for using Sodium.
Sodium consists of three different types
of command sets.
1) Global commands. These are possible to
use anywhere, in any mode.
2) Mode-specific commands. These are
specific to a given mode.
3) Namespaces. Commands that can be
invoked as input (after) certain
commands.
The modes are of two types:
- Command mode: In command mode a command
can be preceeded by a numeral. This
numeral is called a parameter, and can
mean various things for the command.
- Primitive mode: In this type of mode
the keys are given directly to the
handler without any form of parsing.
Global commands
---------------
- [alt][space]: Go to the next cursor.
- [alt]<motion>: Move a given motion.
- [shift][space]: Go back to normal mode.
Modes
-----
# Normal
This is the default mode. Normal mode
provides various commands. Normal mode
is intended for doing commands which
are often invoked and commands used to
change modes.
The following commands are valid in
normal mode:
- h
- j
- k
- l
- J
- K
- H
- L
- g
- G
- b
- B
- i
- r
- R
- x
- X
- d
- o
-
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment