Commit Graph

7165 Commits

Author SHA1 Message Date
Marijn Haverbeke 7658fc2dd3 add github link 2011-01-14 14:47:03 +01:00
Marijn Haverbeke 2a61a49454 make presentable 2011-01-14 14:41:57 +01:00
Marijn Haverbeke f8794a7232 add 'operation' abstraction
this keeps track of whether the selection and the textarea
have to be updated, so that this logic isn't scattered
through the code, and to prevent superfluous updates
2011-01-14 14:29:03 +01:00
Marijn Haverbeke 4df5f44919 fix corner case bug in replaceLines 2011-01-14 13:17:51 +01:00
Marijn Haverbeke 6b3b213ea5 make line.div / line.selDiv hack slightly less error-prone 2011-01-14 12:52:02 +01:00
Marijn Haverbeke 7589048c5b clean up line replacement, fix corner cases 2011-01-14 12:44:37 +01:00
Marijn Haverbeke a5c4c4823c add indentation, clean up selection a little 2011-01-14 11:41:18 +01:00
Marijn Haverbeke ecefc858f9 opera compatibility (\r\n support) 2011-01-13 15:43:02 +01:00
Marijn Haverbeke 2f06a8efa5 integrate basic highlighting, port JS tokenizer 2011-01-13 15:07:32 +01:00
Marijn Haverbeke 19e70ae308 properly handle paste and drag/drop 2011-01-13 11:39:40 +01:00
Marijn Haverbeke 42cad3c0ec backwards-selection hack
when holding shift, with an inverted selection present, and pressing
a cursor-movement key, the editor now collapses the selection to its
start, and then cleverly interprets the resulting selection (after
the movement) to determine how to extend its own selection

all this to work around the fact that we can't set an inverted
selection in a textfield.

the editor automatically extends its set of cursor-movement key
combos when such a key is pressed, to handle user keybindings
2011-01-13 10:37:52 +01:00
Marijn Haverbeke 7898ca2f5c fix some crumminess with selection updating 2011-01-12 17:22:06 +01:00
Marijn Haverbeke fe2e282398 working shift-selection 2011-01-12 16:56:09 +01:00
Marijn Haverbeke b630af89bc display selection, proper mouse handling, basic shift-select
shift-select is still broken in ten different ways, though
2011-01-11 21:40:56 +01:00
Marijn Haverbeke 88887636e7 initial import
basic editing works. no highlighting, crappy mouse support
2011-01-11 17:17:56 +01:00