Commit graph

5,188 commits

Author SHA1 Message Date
nightwing
c8fca3053c Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	lib/ace/line_widgets.js
2014-01-16 00:14:34 +04:00
nightwing
8d57d8765f Merge pull request #1745 aldendaniels:master into v-1.2
Refactor document delta handling
2014-01-16 00:11:00 +04:00
Harutyun Amirjanyan
ac99690429 Merge pull request #1760 from adamjimenez/patch-21
shift+mousewheel to horiz scroll
2014-01-14 07:26:00 -08:00
Harutyun Amirjanyan
00f044d0cf Merge pull request #1764 from rgallion/Issue_1762_Add_Vim_unit_tests
Add Vim keybinding unit test [Issue 1762]
2014-01-14 06:45:20 -08:00
Harutyun Amirjanyan
177e0af9eb Merge pull request #1707 from danyaPostfactum/refactor/tooltip
Refactor tooltip to separate class.
2014-01-14 06:38:28 -08:00
Roger Gallion
0ab6574521 Add Vim keybinding unit test [Issue 1762] 2014-01-13 08:27:14 -06:00
Adam Jimenez
fb233da532 shift+mousewheel to horiz scroll
Converts shift+mousewheel to horizontal scroll.
This is in accordance with Chrome which supports this shortcut on webpages and textareas.
2014-01-13 09:46:53 +00:00
aldendaniels
7f1bc7af2f Break out Anchor.onChange helper functions
This should be faster since we don't have to re-initialize the helper
functions each time Anchor.onChange is fired.
2014-01-11 15:48:38 -06:00
aldendaniels
6b280bf6bb Code review fixes (mostly formatting)
- Fix unconventional '{' formatting
- Reformat `UndoManager` changes
- Revert change from `insertInLine` to `insert` in text.js
2014-01-11 15:23:20 -06:00
aldendaniels
35a27fd1ba Treat deltas with empty ranges as NOOPs 2014-01-11 14:45:08 -06:00
aldendaniels
ddd695ee3f Store single-line deltas as .text instead of .lines in undo history
Stores single-line delta content as .text instead of .lines in undo
history. This is done without modifying the original delta object in
case the caller still retains a handle to the original.
2014-01-11 14:43:47 -06:00
aldendaniels
f59708a5ba Add a doNotValidate param to applyDelta
Set it to true in insertInLine/removeInLine.

Also sped up indent/dedent by using insertInLine and removeInLine.
2014-01-11 12:00:10 -06:00
aldendaniels
ef0e8da522 Fix / complete validateDelta
This uncovered the fact that until now delta.range had not always been a
Range object. This inconsistency has been resolved by my changes in
mirror.js.
2014-01-11 11:20:34 -06:00
aldendaniels
08edcdfc98 Stop doing a line-by-line splicing in applyDelta
Also brings back the functionality where large deltas are split into
smaller deltas so that .splice.apply() calls will work.
2014-01-10 22:49:17 -06:00
nightwing
d226ea067b update site 2014-01-10 00:11:00 +04:00
aldendaniels
3a048cdf61 Bring back insertInLine
Avoids an extra $split call.
2014-01-08 22:51:39 -06:00
aldendaniels
f2a2e4e1a8 Rename the 'delete' delta action to 'remove'
Matches previous naming convention.
2014-01-08 22:18:05 -06:00
aldendaniels
6fe381f633 Rename insertText back to insert 2014-01-08 22:00:11 -06:00
aldendaniels
91df7cd663 Revert "Stop using splice.appy() in ace"
This reverts commit 8624ab8dcb.
2014-01-08 21:39:30 -06:00
nightwing
ce329df39b update the site v1.1.2 2014-01-08 03:14:35 +04:00
nightwing
142761d86f fix regression in { pairing 2014-01-07 23:03:32 +04:00
nightwing
30a4d12eb7 fix ascii filter in builder 2014-01-07 23:01:10 +04:00
Zef Hemel
b79cb61861 Update LogiQL highlighting: add alias_all storage type 2014-01-07 17:54:33 +01:00
Harutyun Amirjanyan
5b3e1ca29d Merge pull request #1750 from rmsmith/master
dart_highlight_rules : add 'with' to `keywordDeclaration`
2014-01-04 05:50:00 -08:00
aldendaniels
8624ab8dcb Stop using splice.appy() in ace
Since .apply() can't handle more than 65535 parameters, splice.apply()
is brittle. It's also hard to read. This replaces splice.apply() calls
throughout ace code with lang.spliceIntoArray().
2014-01-04 01:59:30 -06:00
aldendaniels
b503e65e03 Break on applyDelta into its own module
This makes it possible to break out helper functions without exposing
them to the rest of the document class. Also, long term, we may want to
have a stand-alone test suite for applyDelta, so it makes sense in its
own file.

All other changes involve syntax corrections (some syntax issues were
mine, others pre-existed) to make the documentation compilation work.
2014-01-03 14:59:22 -06:00
rmsmith
c40bf3b172 dart_highlight_rules : add 'with' to keywordDeclaration
'with' clauses are used for mixin application in Dart, e.g:

`class ToggleButton extends Button with Toggleable { ... }`
2014-01-03 21:04:23 +02:00
Ruben Daniels
5733f006a8 Merge pull request #1740 from ajaxorg/c9
sync with cloud9
2014-01-02 11:01:42 -08:00
Harutyun Amirjanyan
7bcf64401f Merge pull request #1747 from hartman/themelistfix
Repair label of themes in themelist.
2014-01-02 04:23:39 -08:00
Derk-Jan Hartman
8f109ea371 Repair label of themes in themelist.
This was broken after c563f15e93
2014-01-02 13:04:24 +01:00
aldendaniels
612478e39f Speed up single-line deltas
2e6f12725b slowed down the application of
deltas that only affect a single line. The slow-down, though trivial for
a single line, is significant for operations than separately modify
thousands of rows (such as indenting a large document).

This commit speeds up single-line deltas by avoiding unnecessary calls
to splitLine() and joinLineWithNext().
2014-01-01 14:45:54 -06:00
aldendaniels
810e196cc6 Use console.warn for deprecated methods
console.warn makes better sense than console.log and matches similar
warnings in ace (see gutter.js for example).
2014-01-01 12:06:19 -06:00
aldendaniels
026af74016 Fix render bugs
Both were introduced in 2e6f12725b.
2014-01-01 12:04:12 -06:00
aldendaniels
27768230c8 Maintain public API and update coding convention
This seeks to keep the public API in-tact while improving method names
within ace by keeping the old methods as wrappers around the new
better-named methods.

For example, document.insert() now simply calls document.insertText()
and warns the caller via a console.log() that they are using a
deprecated method.

I've also updated the coding style of my changes (where I noticed
discrepancies) to match the rest of Ace.
2014-01-01 11:05:27 -06:00
aldendaniels
2e6f12725b #1744: Refactor document delta handling
Refactor delta handling code to:

- Combine the "insertText" and "insertLines" delta types into a single
"insert" delta type

- Combine the "removeText" and "removeLines" delta types into a single
"remove" delta type

- Make all document mutations in a single applyDelta function.

- Add basic delta validation (more needed . . . see TODOs)

- Rework anchor logic to handle new delta types (also simplified)

- Rename "insert()" to "insertText()" and "remove()" to "removeText()"

- Rename "insertLines()" to "insertFullLines()" and "removeLines()" to
"removeFullLines()"

See related issue for more information. All tests are passing and the
changes appear functional under preliminary testing, but careful review
and testing will be necessary.
2014-01-01 00:41:45 -06:00
nightwing
ccc7d6dda8 add more sites 2013-12-31 16:17:01 +04:00
Harutyun Amirjanyan
a9d194894e Merge pull request #1742 from hartman/commas
Remove trailing comma's, which break scripts in IE7
2013-12-31 04:16:32 -08:00
Derk-Jan Hartman
1240a04fff Remove trailing comma's, which break scripts in IE7 2013-12-31 10:12:34 +01:00
DanyaPostfactum
0b1630d6fa Refactor tooltip to separate class. 2013-12-30 20:13:00 +10:00
nightwing
425404ff29 fix #1737 reset padding only if previous theme had custom padding 2013-12-30 02:05:57 +04:00
nightwing
3cc3043951 update js highlighter test 2013-12-30 01:56:58 +04:00
nightwing
9a5bd3cd65 include error_marker addon in the build 2013-12-30 01:42:12 +04:00
Harutyun Amirjanyan
6e46195102 Merge pull request #1728 from desoi/master
Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json.
2013-12-29 13:37:10 -08:00
John DeSoi
48cd7f55dc Updated keywords and functions for PostgreSQL 9.3. Added sub-mode support for JavaScript and Json. 2013-12-29 14:16:38 -06:00
nightwing
edee507fd9 update site 2013-12-29 21:13:44 +04:00
nightwing
714e1a592c fix resize issues 2013-12-29 20:07:08 +04:00
nightwing
90b2a6cd77 fix multiselect mouse interaction issues 2013-12-29 20:05:23 +04:00
nightwing
37b3dc1efd tweak modes 2013-12-29 20:03:08 +04:00
nightwing
b6a4a34fd2 togglecomment should not scroll if part of the selection is visible 2013-12-29 20:02:14 +04:00
nightwing
5b151a3db4 fix scrolling speed on firefox ux 2013-12-29 19:59:16 +04:00