49b34e78d5
Got basic editing functionality up and running again after the refactor.
2014-12-31 18:39:01 -08:00
71913eed31
Got grapheme iterators and 1d/2d position translation working.
2014-12-31 17:55:20 -08:00
95d6d3fd3e
Got remove_text() working.
...
At least, based on the unit tests so far.
2014-12-31 17:05:24 -08:00
28a4da97a7
More WIP remove_text().
2014-12-31 13:15:58 -08:00
0794d5c6ec
WIP remove_text()
2014-12-31 01:20:51 -08:00
f0f6980b6d
Added a bunch more tests for Buffer, and fixed line removal code.
2014-12-31 00:31:42 -08:00
720246142e
WIP refactor: text can now be inserted into empty buffers.
2014-12-30 22:55:23 -08:00
c88ba48b6d
WIP refactor: change text buffer to use the Line struct for storing text.
...
Most of the UI and editor code is either commented out or not included
in the compile right now. This is temporary while I get the basic
text code working again.
2014-12-29 16:17:53 -08:00
370d8a315e
WIP refactor: changing internal text representation to be line-based.
...
This will make some of the internals a little more complex, but should
simplify things on the balance.
2014-12-28 20:53:25 -08:00
e3e2c866b9
We now store character widths in TextBlocks.
...
This is the first step towards supporting proportional fonts
and tabs characters.
2014-12-28 13:44:38 -08:00
74cd79745f
Scrolling in the editor by following the cursor now works.
2014-12-27 13:59:41 -08:00
833e92c5a0
Added a some text manipulation methods, and made backspace work properly.
2014-12-26 21:03:13 -08:00
bf099d0f6d
Basic cursor movement is now working properly.
2014-12-26 19:29:52 -08:00
5105622dcb
Fixed bug in pos_2d_to_closest_1d() code.
2014-12-26 17:49:42 -08:00
f469240860
Misc bug fixes on the way towards a proper editing interface.
2014-12-20 18:45:01 -08:00
a56ff95221
WIP: building a proper UI for editing a file.
...
Some things don't quite work properly yet...
2014-12-20 17:23:47 -08:00
421b5288a4
Split buffer.rs into various sub-modules for better organization.
2014-12-19 23:22:30 -08:00