Fabian Jakobs
|
a558f58ac3
|
lgpl v2.1
|
2011-04-29 15:26:36 +02:00 |
|
Fabian Jakobs
|
16ba002356
|
move fold example to the java mode
|
2011-04-29 15:26:23 +02:00 |
|
Fabian Jakobs
|
0766bc45b3
|
Merge remote-tracking branch 'getify/codefolding'
|
2011-04-29 15:17:03 +02:00 |
|
Julian Viereck
|
af13eb544b
|
Use a rowCache that does auto chaing every 1000 lines
|
2011-04-29 14:44:36 +02:00 |
|
Julian Viereck
|
a3496dfad1
|
Use a cache to speed up doc->screen and screen->doc mapping on very long document.
|
2011-04-29 13:38:59 +02:00 |
|
Julian Viereck
|
007125025f
|
Fix bugs in undo/redo seleciton handling
|
2011-04-29 12:25:53 +02:00 |
|
Julian Viereck
|
86a0e98c36
|
Reset the $redoStack of the undoManager once a delta is executed. Add Range.setStart/setEnd.
|
2011-04-29 12:15:19 +02:00 |
|
Fabian Jakobs
|
749206fedb
|
fix unit test
|
2011-04-29 11:32:32 +02:00 |
|
Fabian Jakobs
|
19d5734441
|
small worker fix
|
2011-04-29 11:32:23 +02:00 |
|
Fabian Jakobs
|
b7bb042d38
|
fix event emitter test
|
2011-04-29 11:28:04 +02:00 |
|
Fabian Jakobs
|
847ccceac3
|
use new asyncjs
|
2011-04-29 11:26:40 +02:00 |
|
Julian Viereck
|
e871700e2e
|
Fix bug in undo/redo + folds: The folds have to get onto the undo queue after the changeStack is empty. New events changeStart/End added.
|
2011-04-29 11:08:19 +02:00 |
|
Julian Viereck
|
acc318af90
|
Make things work again afte rebasing.
|
2011-04-28 21:47:35 +02:00 |
|
Julian Viereck
|
2c9e4f7476
|
Doing some small tiedy up. Unstructured Code Folding should be done.
|
2011-04-28 21:41:02 +02:00 |
|
Julian Viereck
|
a385637b9e
|
Add removing folds to undo queue.
|
2011-04-28 21:41:02 +02:00 |
|
Julian Viereck
|
f695c253f5
|
Add sub folding feature. addFold can take a Fold object now.
|
2011-04-28 21:40:37 +02:00 |
|
Julian Viereck
|
d575f47ebc
|
Add checks to addFold.
|
2011-04-28 21:40:37 +02:00 |
|
Julian Viereck
|
e356ea8cae
|
Ensure selection can't be inside of a fold.
|
2011-04-28 21:40:37 +02:00 |
|
Julian Viereck
|
5573252193
|
Make Selection.moveCursorFirstLine work again. Fixing some bugs on the way.
|
2011-04-28 21:40:37 +02:00 |
|
Julian Viereck
|
61fc8d04c4
|
Add support for folded lines in Selection.selectLine
|
2011-04-28 21:40:36 +02:00 |
|
Julian Viereck
|
825cf26478
|
Final iteration of wrapMode + folding: Addind unit tests, fixing bugs.
|
2011-04-28 21:40:36 +02:00 |
|
Julian Viereck
|
0687d8a5e8
|
When running the unit tests in the browser, print log to the console.
|
2011-04-28 21:40:36 +02:00 |
|
Julian Viereck
|
1d9dbe6d3e
|
Fix render misalignment. Looks good so far.
|
2011-04-28 21:40:36 +02:00 |
|
Julian Viereck
|
353c6a4f4a
|
Fix bug in updateWrapData. Rendering still sometimes misaligned
|
2011-04-28 21:40:36 +02:00 |
|
Julian Viereck
|
79678b5e96
|
Splitting edit_session.js up - moving the folding code parts into edit_session/fold_line.js|folding.js.
|
2011-04-28 21:40:35 +02:00 |
|
Julian Viereck
|
46a877e563
|
Checkpointing fold-wrap-data work. Mostly done
|
2011-04-28 21:39:59 +02:00 |
|
Julian Viereck
|
ff72467c10
|
Remove FoldLine.getRowLength and .getRowSplits. Use already existing functions which simplifies the code.
|
2011-04-28 21:39:59 +02:00 |
|
Julian Viereck
|
47207a6b9f
|
Reenable unit test again.
|
2011-04-28 21:39:58 +02:00 |
|
Julian Viereck
|
b6772e8ef2
|
Add documentation for EditSesion.getFoldAt and change meaning of side.
|
2011-04-28 21:39:21 +02:00 |
|
Julian Viereck
|
af6dcc2253
|
Fix a lot of screen dimension calculation functions.
|
2011-04-28 21:39:21 +02:00 |
|
Julian Viereck
|
155115035c
|
Fix rendering bugs. Make SVG session default for testing.
|
2011-04-28 21:39:21 +02:00 |
|
Julian Viereck
|
2be2386603
|
Fix EditSession.removeFolds: Using the folds of a foldLine might cause unexpected behavior. Clone the passed in array.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
dd121334a6
|
Add basic commands to fold/unfold sections using key shortcuts.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
a1497c097d
|
Add Range.compareRange function used by EditSession.getFoldsInRange.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
dac1b38064
|
Folds realign when inserting/deleting any kind of content from the document. Adds a ton of unit tests. Fixes bugs in EditSession.getFoldsInRange and add .toString() functions to make debugging way easier.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
ae20be743f
|
Add EditSession.getFoldsInRange function + unit tests
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
ccfe285bab
|
Implement EditSession.removeFold.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
9ff0df758a
|
Refactor FoldLine.getStringAt out of fold line as the FoldLine should not be session depending.
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
e9f3ba7b56
|
Add support for multi line insertion + unit tests
|
2011-04-28 21:39:20 +02:00 |
|
Julian Viereck
|
0e0f3a1db3
|
Add unit test for inserting one-line text on folded lines
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
56f74f1368
|
Remove Fold.compare/contains functions. Rename Fold.sameLine to Fold.sameRow. Add new functions to Range that repalce the Fold.compare/contains functions but are more explicit on where to drop the start/end.
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
15d2c50117
|
Fix bug adding new characters right before a fold caused the chars to get added inside of the fold
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
4beecc086a
|
Fix bug in TextLayer.updateLines
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
c22d80398a
|
Add handling for simple adding/removing of content to realign the folds
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
145030972c
|
Remove EditSession.getScreenFirstRowColumn() func and clean up a little bit
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
8c63cd7ff5
|
Get move(Word)Right/left working with folds
|
2011-04-28 21:39:19 +02:00 |
|
Julian Viereck
|
88f55c958a
|
Fix active line highlighter in folded row
|
2011-04-28 21:39:18 +02:00 |
|
Julian Viereck
|
273a1e41d1
|
Remove 'border' from ace_fold as it misaligned the lines. Fix screenToDocumentRow
|
2011-04-28 21:39:18 +02:00 |
|
Julian Viereck
|
068e289f17
|
Get fold EditSession.screenToDocument working + unit tested
|
2011-04-28 21:39:18 +02:00 |
|
Julian Viereck
|
b8437cde60
|
Fix EditSession.getScreenLength due to FoldLine refactoring
|
2011-04-28 21:39:18 +02:00 |
|