-
Notifications
You must be signed in to change notification settings - Fork 26
/
ds.txt
87 lines (64 loc) · 1.71 KB
/
ds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
DwarfStar
=========
A small text editor with WordStar
keybindings.
Usage
-----
ds filename.ext
If the file does not exist, a new file
will be created when saving the file.
Keybindings
-----------
A ^ denotes holding the Ctrl key. In
case of two letter commands, the second
letter can be pressed alone or by
keeping Ctrl pressed.
(the famous WordStar diamond)
^E move cursor up
^X move cursor down
^S move cursor left
^D move cursor right
^QS move cursor to start of line
^QD move cursor to end of line
^R move page up
^C move page down
^QR move to start of file
^QC move to end of file
^A word left
^F word right
^W scroll up
^Z scroll down
^G delete character right from cursor
^H delete character left from cursor
^T delete word right from cursor
^Y delete line
^QY delete until end of line
^I insert up to four spaces
^M insert line break
^QF find string
^KS save file
^KQ quit DwarfStar
Author
------
DwarfStar was written by Ivo van
Poorten in September 2024, based on
"Build your Own Text Editor" [1] which
was in turn based on antirez's kilo
editor [2].
Several improvements were made to
reduce the amount of screen redrawing,
making it suitable for slow screens,
being either memory based or over a
serial terminal line. DwarfStar was
first called 'lb' (short for pound,
circa half a kilo) but as more features
were added, mimicking the legendary
WordStar, and its size growing well
beyond what could reasonably called a
pound, it was renamed DwarfStar. As of
this writing cloc reports 626 lines of
code. With syntax highlighting removed,
but several features added, this is
still well below the size of 'kilo'.
[1] https://viewsourcecode.org/snaptoken/kilo/index.html
[2] http://antirez.com/news/108