feat: add ctrl+w word-delete, delete key, home/end keys to repl input handling

Add Ctrl+w keybinding to delete the word left of cursor by removing trailing spaces then characters until next space. Implement EscapeBracket.delete handling to delete character right of cursor and consume the trailing 126 byte. Support EscapeBracket.end and EscapeBracket.home to jump cursor to end or start of line. Register new ctrlW constant (0x17) and EscapeBracket constants for delete (0x33), end (0x46), home (0x48). Add Taylor Hoff to AUTHORS.
This commit is contained in:
Bob Nystrom
2019-02-14 15:31:22 +00:00
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -24,3 +24,4 @@ Marshall Bowers <elliott.codes@gmail.com>
Michal Kozakiewicz <michalkozakiewicz3@gmail.com>
Charlotte Koch <cfkoch@edgebsd.org>
Michel Hermier <michel.hermier@gmail.com>
Taylor Hoff <primdevs@gmail.com>