Commit graph

4,390 commits

Author SHA1 Message Date
Matthew Kastor
d531866663 augments Editor.prototype 2013-04-13 20:52:50 +04:00
Matthew Kastor
b1ac371387 fixes esc event listener removal 2013-04-13 20:52:50 +04:00
nightwing
fb9bc6d3f4 prettifies menu option labels
removes "set" adds space before uppercase letters.

focus handling

focus handling
2013-04-13 20:52:50 +04:00
Matthew Kastor
9e9cdb3c48 removes commands from default commands 2013-04-13 20:52:22 +04:00
Matthew Kastor
0631a708bc removes requires from Editor 2013-04-13 20:49:46 +04:00
Matthew Kastor
b0e496de88 moved utilities to subdirectory 2013-04-13 20:49:46 +04:00
Matthew Kastor
ccae5bd8d5 remove console.log 2013-04-13 20:49:46 +04:00
Matthew Kastor
be52f7316a fix typo 2013-04-13 20:49:46 +04:00
Matthew Kastor
8244231254 adds support for closing menus by pressing esc 2013-04-13 20:49:46 +04:00
Matthew Kastor
0a289d2468 removed left property assignment
When the editor takes up the entire window and the window is only half
the size of my screen, the menus get crunched up horribly.  I'll provide
for closing the overlay by pressing esc in case the overlay's contents
take up the entire screen.

If ace is to be used in very small frames then implementors will need to
provide styling information in css to control how the settings menu
looks.
2013-04-13 20:49:46 +04:00
Matthew Kastor
24a00578c6 removed unnecessary function
since I've moved the functions to the editor and session objects
themselves I can get rid of this.
2013-04-13 20:49:46 +04:00
Matthew Kastor
b0c08dced1 adds setWrapLimit to session 2013-04-13 20:49:45 +04:00
Matthew Kastor
340f004fd0 adds getFontSize to editor 2013-04-13 20:49:45 +04:00
Matthew Kastor
1518a460ae adds description to kb & settings menu methods 2013-04-13 20:49:45 +04:00
Matthew Kastor
f6d1c1167c adds show kb & settings menu to editor 2013-04-13 20:49:45 +04:00
Matthew Kastor
c9f0439cf3 add license block 2013-04-13 20:48:57 +04:00
Matthew Kastor
c695db475a set wrap limit wraps within 20 chars 2013-04-13 20:48:57 +04:00
Matthew Kastor
6b1e90fbc7 fixed position to avoid scrolling away
The overlay menu should remain visible when scrolling a long page.  The
intention is to present information on demand and not leave the menu on
screen. If allowed to scroll away the remaining element could interfere
with the page.
2013-04-13 20:48:57 +04:00
Matthew Kastor
cc4d524a8a prettified settings menu 2013-04-13 20:47:21 +04:00
Matthew Kastor
52a1dffa9f menus will open only 1 at a time per menu. 2013-04-13 20:47:21 +04:00
Matthew Kastor
4ec0a6e706 prettified kb menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
3bca16ac73 fix top margin on kb shortcuts menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
fb7152cb10 prettified generic menu 2013-04-13 20:46:24 +04:00
Matthew Kastor
baaf4dd0b4 Separated logic from presentation, lowercased file names
I pulled the code for generating the menu out into its own module called
overlay_page. I pulled the code for generating a menu, using
overlay_page, out into its own module called show_keyboard_shortcuts.
The logic for getting a list of keyboard shortcuts pertinent to the
current operating system is by itself in the module
get_editor_keyboard_shortcuts. This should make it easy for anyone to
change the appearance of the menu without worrying about breaking the
code which fetches the data.
2013-04-13 20:42:55 +04:00
Matthew Kastor
d4f4758b17 adds keyboard shortcuts menu
I'm not set on the keybinding or the aesthetics of this. please change
them at will. The main goal here is to provide some method to list all
the keyboard shortcuts dynamically. I mean that when new shortcuts are
added they should automatically be put into this menu without anyone
writing any extra code. The menu provides a way for end users to easily
discover the many built in functions accessible through the keyboard.

Admittedly the current keybinding to display this menu is not very
convenient or easily guessed. I like the way that the textarea version
of ace presents a single clickable corner that is easily identified by
users. It would be cool to make this pretty and obvious.
2013-04-13 20:42:08 +04:00
Matthew Kastor
cd2bef9754 clarified comment on createNewEntry 2013-04-13 20:40:06 +04:00
Matthew Kastor
2ea0faf97b fixed typo in comment 2013-04-13 20:40:06 +04:00
Matthew Kastor
1d631b5ca1 Separated logic & presentation, lowercased file names
I lowercased the file names. I've separated the code to generate an
overlay menu out into a module called overlay_page, it is the same code
as is in my other pull request for the keyboard shortcuts menu. It
should be easy enough to change the way it looks and behaves without
worrying about breaking anything. I've pulled code out into a module
called element_generator because it is pretty generic and isn't
concerned with gathering data for the settings menu. The element
generator can be reused and augmented but there is the possibility that
modules depending on it could break. show_settings_menu depends on the
element_generator. As it collects data it generates generic elements and
attaches event listeners to them.  The massive list of options has been
moved into its own module for two reasons (1) it makes maintaining
show_settings_menu much easier and (2) this is the only part of the menu
which has to be updated manually. We may be able to add something to the
build system to automatically generate this module based on which modes
and themes are found to alleviate us from having to remember to add said
options in when new themes and modes are added.
2013-04-13 20:40:06 +04:00
Matthew Kastor
09266196ab adds settings menu to ace
I'm not stuck on the keybinding or aesthetics of this, please change
them at will. All I really want is the ability to display a menu where I
can change the editor's settings from and I want the menu to be smart
enough to automatically know about new settings. This pretty much works
except there isn't a registry for themes and modes so every new theme or
mode has to be added to the internal list by hand...
2013-04-13 20:40:06 +04:00
Mostafa Eweda
19dd921127 Merge pull request #1364 from ajaxorg/worker
Queue events before sending to the worker
2013-04-11 04:07:12 -07:00
nightwing
886da0d0dc fix setDefaultValue for useWorker 2013-04-09 22:14:30 +04:00
nightwing
13c8ef5f5c update site 2013-04-09 21:41:09 +04:00
Lennart Kats
ba015bb251 Merge pull request #1333 from ajaxorg/ime
Improve ime handling
2013-04-09 06:38:02 -07:00
nightwing
477d381185 do not send deltas to worker synchronously since it is slow and crashes chrome 2013-04-09 16:44:17 +04:00
nightwing
e04b37c062 add cursorStyle option 2013-04-09 14:37:14 +04:00
Harutyun Amirjanyan
5f8f3bf925 Merge pull request #1361 from rgriffith/ie_fix
Removed trailing commas that cause errors in IE
2013-04-08 13:42:31 -07:00
Ryan Griffith
3557eba166 Removed trailing commas that cause errors in IE 2013-04-08 16:29:50 -04:00
Harutyun Amirjanyan
bf4e49668a Merge pull request #1360 from chhochreiner/master
minor tcl mode cleanup
2013-04-08 06:05:41 -07:00
Christoph Hochreiner
bc66204d59 remove not necessary/worng comments and not tcl specific rule for variables (is only valid for the tcl extension xotcl 2013-04-08 14:45:58 +02:00
Harutyun Amirjanyan
5fb95ca184 Merge pull request #1358 from ajaxorg/dart-based-on-c
Based Dart mode on C/C++ mode so that at least the indentation basics
2013-04-08 04:52:55 -07:00
Zef Hemel
712818b49e Removed outdated keywords 2013-04-08 13:48:19 +02:00
Zef Hemel
149bef7051 Fix Dart test 2013-04-08 13:27:51 +02:00
Zef Hemel
6d8c810581 of keyword 2013-04-08 13:24:23 +02:00
Zef Hemel
835f2e3690 Fixed some higlighting rules to match modern Dart. 2013-04-08 13:22:02 +02:00
Zef Hemel
63930b52d1 Based Dart mode on C/C++ mode so that at least the indentation basics
are acceptable (e.g. indentation after curly braces).
2013-04-08 12:13:18 +02:00
nightwing
6c7ea4a2f7 remove whitespace from css during the build 2013-04-06 16:10:39 +04:00
Harutyun Amirjanyan
e0a2d5688c Merge pull request #1350 from rgriffith/snippet_newline_fix
Fix newlines for text files
2013-04-06 05:10:19 -07:00
Harutyun Amirjanyan
251719f85b Merge pull request #1351 from rgriffith/velocity_mode
Add Velocity highlighter
2013-04-06 04:48:37 -07:00
Harutyun Amirjanyan
0f6706f29d Merge pull request #1354 from machee/master
fix php worker bogus error on use keyword
2013-04-06 04:46:18 -07:00
Mark Achee
d308803fbe fix php worker bogus error on use keyword 2013-04-06 06:01:04 +02:00