Commit Graph

60 Commits

Author SHA1 Message Date
Timothy Warren ddf0963c65 Some minor cleanup 2021-03-04 15:25:37 -05:00
Timothy Warren 44a1d5ce9a Be more robust in restoring canonical mode 2019-10-04 15:53:08 -04:00
Timothy Warren 8825cdb058 Gracefully handle opening an empty file 2019-10-04 15:49:45 -04:00
Timothy Warren 93ac2604b2 Simplify editor constructor 2019-09-27 14:55:15 -04:00
Timothy Warren c3dee47b46 Minor code cleanup 2019-09-19 16:45:48 -04:00
Timothy Warren 4d1560717e Make syntax_to_color a standalone function 2019-09-19 12:25:36 -04:00
Timothy Warren 92155aa762 Fix the cursor issue! 2019-09-19 12:21:23 -04:00
Timothy Warren a94368c965 Minor code cleanup, make get_cursor_position actually work correctly 2019-09-19 12:19:20 -04:00
Timothy Warren f8700c8e93 Treat ctrl+letter chords as their own character class 2019-09-17 11:19:46 -04:00
Timothy Warren 6497111427 Only call editor::refresh_screen on a key press 2019-09-17 10:34:17 -04:00
Timothy Warren cac43aeba9 Do not hide cursor on refresh, at least for now 2019-09-13 16:34:53 -04:00
Timothy Warren b9dee69522 Cargo fmt and use STDOUT_FILENO for getting Termios 2019-09-13 16:34:31 -04:00
Timothy Warren 0dd537dc14 Update version 2019-09-13 11:27:39 -04:00
Timothy Warren f955e22c19 Implement missing function, fix some math issues between cursor_x and render_x 2019-09-12 16:49:49 -04:00
Timothy Warren d45911767d Fix keyword highlighting off-by-one errors, to fix keyword highlighting 2019-09-11 10:37:18 -04:00
Timothy Warren cec958932c Misc tweaks, add Javascript highlighting 2019-09-10 16:47:15 -04:00
Timothy Warren 934791d1c4 Use reverse highlight for search, so multiline comments can be blue 2019-09-09 13:27:11 -04:00
Timothy Warren 788edf7e03 Don't use the type name as the name of a variable 2019-09-09 13:16:56 -04:00
Timothy Warren e720de0eb8 Another ugly progress commit 2019-09-06 16:40:31 -04:00
Timothy Warren e6d3995e4c Ugly progress commit 2019-09-06 13:24:29 -04:00
Timothy Warren 389a526f41 Finish tutorial, much refactoring 2019-09-05 15:26:04 -04:00
Timothy Warren ca51d8f1f5 Start of multiline comment highlighting 2019-09-05 12:09:53 -04:00
Timothy Warren 2cecadb3aa Add more Rust keywords 2019-09-04 16:55:05 -04:00
Timothy Warren d2ac4a422c Unfinished keyword highlighting 2019-09-04 16:39:56 -04:00
Timothy Warren 78c612e90f Highlight strings 2019-09-04 15:53:36 -04:00
Timothy Warren f25252a39e Create language syntax struct, and select highlighting by file extension 2019-09-04 15:41:06 -04:00
Timothy Warren 13eb9fd7b4 Fix key repeat escape code truncation issue 2019-09-04 13:25:48 -04:00
Timothy Warren 11a058c8df Improve number highlighting logic 2019-09-04 13:15:22 -04:00
Timothy Warren 4092b0226e Clear previous search highlights 2019-09-04 11:32:05 -04:00
Timothy Warren 7c6c06e10f Number and search result highlighting 2019-09-04 11:20:57 -04:00
Timothy Warren be4a866a0c Working incremental search 2019-09-04 10:09:08 -04:00
Timothy Warren ae96a76e23 Update readme 2019-09-03 16:39:12 -04:00
Timothy Warren 3ae040f1fc Code format cleanup 2019-09-03 16:20:00 -04:00
Timothy Warren dcd0c3bec1 Find with callback 2019-09-03 16:19:19 -04:00
Timothy Warren b461804354 Finish chapter 5 2019-09-03 14:57:52 -04:00
Timothy Warren ae74513e88 Rework input logic to remove throttling 2019-09-03 11:48:40 -04:00
Timothy Warren dd9166d465 Add Save As prompt 2019-08-30 16:17:06 -04:00
Timothy Warren aadbccaf9d Make the enter key work 2019-08-30 15:10:19 -04:00
Timothy Warren 8e125b8c7c Basic backspacing 2019-08-30 11:20:52 -04:00
Timothy Warren 19c724d18f Fix some style and syntax issues 2019-08-29 16:45:54 -04:00
Timothy Warren 5d1c8d8b8b Basic save functionality 2019-08-29 16:32:17 -04:00
Timothy Warren 0c81912cac Complete chapter 4 2019-08-29 14:13:09 -04:00
Timothy Warren fd9f504266 Show current line number and total in status bar 2019-08-29 11:47:22 -04:00
Timothy Warren 172d5ad699 First status bar output 2019-08-28 16:35:48 -04:00
Timothy Warren c1c87429fb Vertical scrolling, and improved escape code matching 2019-08-27 17:38:05 -04:00
Timothy Warren 160b840151 Make Editor.rows a vector, cleanup some code and logic 2019-08-27 15:13:32 -04:00
Timothy Warren 4167088f81 Open a file and display the first line 2019-08-27 12:22:19 -04:00
Timothy Warren a67562b3a2 Start chapter 4 2019-08-27 08:30:51 -04:00
Timothy Warren a0c926dee9 Add readme 2019-08-26 16:43:58 -04:00
Timothy Warren 761e55236b Rough progress commit, chapter 3 with cursor issues 2019-08-26 16:39:52 -04:00