Lots of updates:
1. Scrolling and click to set the cursor works. 2. GUI now uses Brass Mono as the font. 3. A lot of stability and other updates.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
|
||||
class Editor;
|
||||
|
||||
// Identifiers for editor commands. This is intentionally small for now and
|
||||
@@ -22,6 +22,7 @@ enum class CommandId {
|
||||
Refresh, // force redraw
|
||||
KPrefix, // show "C-k _" prompt in status when entering k-command
|
||||
FindStart, // begin incremental search (placeholder)
|
||||
OpenFileStart, // begin open-file prompt
|
||||
// Editing
|
||||
InsertText, // arg: text to insert at cursor (UTF-8, no newlines)
|
||||
Newline, // insert a newline at cursor
|
||||
@@ -34,6 +35,12 @@ enum class CommandId {
|
||||
MoveDown,
|
||||
MoveHome,
|
||||
MoveEnd,
|
||||
PageUp,
|
||||
PageDown,
|
||||
WordPrev,
|
||||
WordNext,
|
||||
// Direct cursor placement
|
||||
MoveCursorTo, // arg: "y:x" (zero-based row:col)
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user