Commit graph

56 commits

Author SHA1 Message Date
nightwing
6cde5f3b4f cleanup 2012-04-04 13:06:17 +04:00
nightwing
299cdc1b19 fix typo 2012-04-03 22:46:48 +04:00
nightwing
57bb9f767c fix foldAll 2012-01-02 21:46:04 +04:00
Fabian Jakobs
c08d09bfb4 use strict 2011-12-19 15:15:29 +01:00
Fabian Jakobs
d2a783f824 use _emit iso _dispatchEvent 2011-12-19 12:03:57 +01:00
Fabian Jakobs
512a82015f Merge pull request #580 from nightwing/pullreq
python folding tests + some bugfix
2011-12-16 03:01:35 -08:00
okonomiyaki3000
581668441a Changed 6 instances of 'char' to 'chr'. char is a reserved word in JavaScript and should not be used as a variable name. 2011-12-16 15:15:54 +09:00
nightwing
3f123b19a6 shift click should add subfolds until document end if foldWidgetRange is null 2011-12-15 21:48:15 +04:00
nightwing
c491ec9a5b handle case when fold is on single line 2011-12-15 20:53:05 +04:00
Fabian Jakobs
ebbe67a01b Merge pull request #573 from nightwing/pullreq
more folding polish
2011-12-14 05:27:52 -08:00
Fabian Jakobs
653a88ff30 don't sélect on unfold 2011-12-14 13:28:02 +01:00
Fabian Jakobs
78d2e48ab2 when setting fold style to manual unfold all folds 2011-12-13 14:04:57 +01:00
Fabian Jakobs
e8f35d3cd2 cleanup 2011-12-13 13:50:28 +01:00
nightwing
d10ea1fe0d show some feedback to user action, when fold can't be added 2011-12-13 09:31:14 +04:00
Fabian Jakobs
83065ec8f5 fix folding of comments 2011-12-09 16:37:00 +01:00
Fabian Jakobs
70cef75704 add setting to toggle fold mode 2011-12-05 15:11:36 +01:00
Fabian Jakobs
829c24c780 add getAllFolds 2011-12-02 13:19:42 +01:00
nightwing
f02c04965b shift+click must fold all subfolds as well 2011-12-01 23:58:16 +04:00
Fabian Jakobs
bbcb00acc4 split mode specific code for structured folding
into separate files
2011-12-01 18:25:46 +01:00
Fabian Jakobs
5db6824f28 disable logging 2011-12-01 16:51:05 +01:00
Fabian Jakobs
285afeb4f2 handle void elements in html folding 2011-12-01 16:44:55 +01:00
Fabian Jakobs
71d5f359fb add folding for xml style modes. Also refactor
html, svg and xml modes to reuse code
2011-12-01 15:39:02 +01:00
Fabian Jakobs
f45b4ed783 code folding cleanups 2011-12-01 11:27:26 +01:00
nightwing
4677db58d8 add fold detection rules for python and c style languages 2011-11-28 18:09:39 +04:00
nightwing
2424261f7a use tokenIterator to find comment range 2011-11-28 00:57:40 +04:00
nightwing
77dfd0b29c addFold must not throw if new fold is inside the existing one 2011-11-28 00:24:37 +04:00
nightwing
3412f89007 add simple foldWidgets 2011-11-27 20:53:51 +04:00
nightwing
3dbe128d10 fix: removeFolds splits foldLine incorrectly 2011-11-21 12:13:25 +04:00
nightwing
d8a8876254 find and goto must unfold desired locations 2011-11-21 12:13:16 +04:00
Fabian Jakobs
a13ba68fa2 fix unit tests 2011-11-15 11:05:11 +01:00
Fabian Jakobs
c1082c648c Merge branch 'match-on-tokens' of https://github.com/dgeorge/ace into dgeorge-match-on-tokens
Conflicts:
	lib/ace/edit_session.js
	lib/ace/edit_session_test.js
	lib/ace/test/all_browser.js
2011-11-15 11:01:24 +01:00
dgeorge
a4e1ab55f0 Changed the typeRe regular expression to be more strict. 2011-11-11 09:24:08 -08:00
Fabian Jakobs
c043d14b8b use relative module ids to please node.js 2011-11-09 15:38:53 +01:00
dgeorge
ae26fe31a0 More unit tests. Clearer comments. Better variable names. 2011-11-01 17:09:43 -07:00
dgeorge
5030abba97 Changed leading white space to use spaces instead of tabs (no actual code changes, just reformatting the code) 2011-10-31 16:05:52 -07:00
dgeorge
dc84eac595 Merge remote branch 'upstream/master' 2011-10-28 14:38:30 -07:00
dgeorge
e0048b4967 EditSession.findMatchingBracket now uses tokens instead of a simple text search. Moved the bracket-matching code to a separate file edit_session/bracket_match.js. Added a TokenIterator helper class, which walks forward or backward through all tokens in the document. 2011-10-28 14:23:55 -07:00
nightwing
7ade415f25 toggleFold must fold strings and comments as well 2011-10-21 11:09:10 +05:00
nightwing
92a3369bdb add togglefold to the list of default commands 2011-10-21 09:07:13 +05:00
nightwing
70201ad6a7 small optimization + namechange for getNextFold->getNextFoldLine 2011-10-21 09:07:12 +05:00
Fabian Jakobs
df27d13b94 fix row cache. fix #352 2011-07-25 13:04:42 +02:00
Fabian Jakobs
44b8d656f2 make addFold arguments less flexible and do some
cleanups in the folding code
2011-07-25 12:00:19 +02:00
Fabian Jakobs
425f43758f extract fold class into a separate file 2011-07-25 11:15:25 +02:00
nightwing
4787744645 faster documentToScreenPosition 2011-05-27 09:55:19 +02:00
Julian Viereck
c38ddf3245 More work on Split. Update the demo UI on changes 2011-05-23 17:14:29 +02:00
Fabian Jakobs
51d2a348c7 Don't access private $lines array of the document.
There are document implementations, which don't have this.
2011-05-20 15:23:20 +02:00
nightwing
3cd9162103 fix bug when same folded row is shown twice while scrolling
and optimize usage of getRowFoldEnd
2011-05-11 10:26:43 +05: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
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
2c9e4f7476 Doing some small tiedy up. Unstructured Code Folding should be done. 2011-04-28 21:41:02 +02:00