Commit graph

141 commits

Author SHA1 Message Date
Julian Viereck
2d94d77dc4 Moving some files around/creating new ace/keyboard directory. Renaming KeyboardStateMapper to StateMapper 2011-01-13 23:12:27 +01:00
Julian Viereck
2074d723c0 The keyboardHandler is now set using a setKeyboardHandler function 2011-01-13 23:01:36 +01:00
Julian Viereck
3ebd2865ea Finalize current keymapping work:
- catchup with latest changes to pilot/keys.js
- the textinput adds a event.addCommandKeyEvent(...) to the input
- the onTextInput and onCommandKey event sent by the textinput are forwareded to the edtior which
  then forwards the input to the keybinding, which handles the input based on the current inputMode.
- the current inputMode can get changed by setting the setting "inputMode". Currently there are the
  modes "vim" and "emacs". If the inputMode doesn't match, the "default" mode is used.
2011-01-13 22:47:58 +01:00
Julian Viereck
b16bc6abc4 Add basic emacs keybinding. 2011-01-13 22:45:13 +01:00
Julian Viereck
ffca65d15e Improve vim-mode to catch input better if in 'start' mode 2011-01-13 22:45:13 +01:00
Julian Viereck
252b064d6a Add missing "times" to Editor.navigateLeft|Right() 2011-01-13 22:45:13 +01:00
Julian Viereck
1cba46b8d3 First iteration of porting Bespin's keyboardmapping over to ace. 2011-01-13 22:45:13 +01:00
Kevin Dangoor
71d98abe1e add a getValue to match setValue (it's just a synonym for toString) 2011-01-12 15:54:39 -05:00
Joe Walker
e6faa6ab06 tweak require lines for absolute paths to simplify startup 2011-01-12 01:14:40 +00:00
Joe Walker
62f9f22491 fix for selection misused - should go via the editor. not sure how this got missed out of commits 2011-01-04 13:31:01 +00:00
André Fiedler
c01b99180a doc comment mode: added TODO 2010-12-20 03:52:09 +08:00
André Fiedler
b777e08e1a php mode: added highlighting for STD*** constants 2010-12-20 03:52:08 +08:00
André Fiedler
a2dc7c8456 php mode: nicer regexp 2010-12-20 03:52:08 +08:00
Fabian Jakobs
b6bd3fb726 backspace should eat 4 spaces when the cursor is positioned after a tab
(also for navigation and selection)
2010-12-18 16:24:48 +01:00
Fabian Jakobs
16b12da3e3 make test definitions async 2010-12-18 15:45:23 +01:00
SunboX
44907e90f4 Merge branch 'master' of https://github.com/ajaxorg/ace 2010-12-16 21:59:47 +01:00
SunboX
8db8b9b828 some smoother colors 2010-12-16 21:35:56 +01:00
SunboX
d4d47c9ddd one more bug fix :/ 2010-12-16 21:22:21 +01:00
SunboX
193c9cfd8b small fix & changed contributor ;o) 2010-12-16 21:18:23 +01:00
SunboX
f6cae22c2c new color theme: Pastel on dark 2010-12-16 21:02:23 +01:00
SunboX
832e4402d6 added php syntax highlighting 2010-12-16 20:36:47 +01:00
Fabian Jakobs
ad19a8f98e consolidate user agent sniffing from util.js and
core.js into a new module useragent.js
2010-12-16 18:50:26 +01:00
Fabian Jakobs
80a11082b1 auto indent fix 2010-12-16 15:06:40 +01:00
Fabian Jakobs
78af5b6bae some CSS highlighting fixes 2010-12-16 11:50:34 +01:00
Fabian Jakobs
4b5c5f324f fix boolean highlighting 2010-12-16 11:45:21 +01:00
Fabian Jakobs
97c24a7769 all tests are working now 2010-12-16 10:56:33 +01:00
Fabian Jakobs
bf71127511 remove references to window (not supported by node) 2010-12-15 20:01:26 +01:00
Fabian Jakobs
36595bd9d6 convert missing unit tests 2010-12-15 20:01:09 +01:00
Fabian Jakobs
123da20bd5 no capture groups in tokenizer regexps 2010-12-15 20:00:46 +01:00
Fabian Jakobs
ba7168156b fix move lines up + unit test 2010-12-15 19:28:30 +01:00
Fabian Jakobs
79872cac5d collapse line selection for outdented rows 2010-12-15 19:17:45 +01:00
Fabian Jakobs
aa594119b7 toggleCommentLines and indentRows now take row
numbers instead of ranges as arguments
2010-12-15 19:16:44 +01:00
Fabian Jakobs
bfa4748b1b add collapse lines in range 2010-12-15 18:40:46 +01:00
Fabian Jakobs
062c396432 IE rendering fix 2010-12-15 17:34:24 +01:00
Fabian Jakobs
e97f9dbbb7 removed redundant "undefined" 2010-12-15 16:19:09 +01:00
Fabian Jakobs
633293ee5e fix character size measurement 2010-12-15 15:41:08 +01:00
Fabian Jakobs
a2d271677f some Opera key handling fixes (not perfect yet) 2010-12-15 15:40:53 +01:00
Fabian Jakobs
634e9ac890 optimize text size measurement code and fix ugly
off by one error
2010-12-15 14:13:44 +01:00
Fabian Jakobs
9fad3c4eb8 we need more precision when measuring the character width
fixes https://github.com/ajaxorg/editor/issues/issue/8
2010-12-15 12:35:17 +01:00
Fabian Jakobs
69095379c3 use ES5 bind() instead of lang.bind() 2010-12-15 11:43:02 +01:00
Fabian Jakobs
a0d4f85b9e use ES5 Array.isArray instead of lang.isArray 2010-12-15 11:41:59 +01:00
Fabian Jakobs
c5f63c7112 put functions from old "ace/lib" modules directly
on "exports"
2010-12-15 11:04:14 +01:00
Fabian Jakobs
f07745839c fix all tests to run with node.js 2010-12-14 15:09:24 +01:00
Fabian Jakobs
6ad890e71e fix moving lines up 2010-12-14 14:17:52 +01:00
Fabian Jakobs
5e0695b588 pass in the env to canon.execute to allow multiple editors 2010-12-14 11:36:21 +01:00
Fabian Jakobs
cbb6215145 rename all language mode classes to 'Mode'. 2010-12-10 18:07:06 +01:00
Fabian Jakobs
5224b0cf97 add python file to the demo 2010-12-10 17:26:14 +01:00
Fabian Jakobs
a4fcd3fd89 convert python mode to exports style and add it to the demo 2010-12-10 17:11:43 +01:00
Fabian Jakobs
f7c217d7a4 Merge remote branch 'remotes/mozilla/master'
Conflicts:
	demo/editor-build.html
	demo/editor.html
2010-12-10 16:54:14 +01:00
Fabian Jakobs
5a0c5c053a fix sneaked in code 2010-12-10 15:18:40 +01:00