30 Commits

Author SHA1 Message Date
968db413e6 Remove Cursor and move line-tracking into Iterator 2016-12-18 14:51:52 -05:00
129716e28f Draw cursor again 2016-12-11 15:58:31 -05:00
a2b2156016 Move encoding and tabstop out of Iterator/Cursor classes 2016-12-11 15:32:05 -05:00
f41b59aa81 remove a few unused Iterator/Cursor interfaces 2016-12-11 15:23:39 -05:00
9b6b21a1d0 Move Iterator and Cursor classes into Buffer class. 2016-12-11 15:17:15 -05:00
b880397b7e Split up Cursor module into BufferIterator / BufferCursor 2016-12-11 14:00:15 -05:00
1b6038a3cd remove tabstop from GapBuffer 2016-12-07 23:09:06 -05:00
3784b89ca9 remove knowledge of Cursor from GapBuffer 2016-12-07 23:01:03 -05:00
7384128d40 remove more logic from GapBuffer 2016-12-07 22:56:08 -05:00
41c65f2dd9 Begin more refactoring to shrink GapBuffer class 2016-12-07 22:47:33 -05:00
085a8a556a allow loading a Buffer from in-memory data 2016-11-30 21:21:19 -05:00
95884a2b85 add Buffer::insert() alias for GapBuffer::insert() 2016-11-30 21:07:57 -05:00
f14db217d2 add Buffer::Cursor type alias for GapBuffer::Cursor 2016-11-30 21:06:59 -05:00
e57c71855a add Buffer::get_string() and GapBuffer::get_string() 2016-11-27 18:54:03 -05:00
abb11a0b8c Fix cursor go_up()/go_down(), turn on unit tests 2016-11-07 22:42:54 -05:00
d5e3fdf919 implement Buffer::write_to_file() 2016-11-07 22:34:10 -05:00
0cbc36c5ff change Buffer to start using GapBuffer 2016-11-01 22:46:44 -04:00
fbca1f995a remove PieceTable 2016-11-01 21:44:01 -04:00
490505faa1 detect file encoding when loading it 2016-08-11 20:11:13 -04:00
382d155e40 add LineEndings module 2016-07-26 22:36:22 -04:00
a416a47b29 add Buffer::write_to_file() 2016-07-24 12:50:27 -04:00
0780659c8c Buffer: keep track of eol_at_eof flag from TextLoader 2016-07-24 12:27:15 -04:00
20a2786755 Render from the piece table! 2016-07-19 22:34:11 -04:00
aa45f6d6dc Add a PieceTable to Buffer 2016-07-18 22:04:57 -04:00
cae0b581a2 Buffer owns the file buffer 2016-07-14 20:09:35 -04:00
e562f77dab replace FileReader with File class; prepare for removing FileLoader 2016-07-14 18:44:18 -04:00
b1684f1341 scroll through file with J/K keys 2016-07-10 20:13:40 -04:00
5da9cde758 Buffer: hold on to the FileLoader for now so the memory is not released 2016-07-10 17:23:30 -04:00
6d6988c027 expose line iteration in Buffer API 2016-06-29 22:03:40 -04:00
fdcba81a3d most rudimentary Buffer class imaginable 2016-06-29 20:54:08 -04:00