Commit graph

79 commits

Author SHA1 Message Date
Fabian Jakobs
a7963dc9a4 use more robust type checks 2010-12-16 18:21:43 +01:00
Joe Walker
fa4d88830c moving files added since the big move 2010-12-15 20:12:07 +00:00
Joe Walker
fc7f5be3a1 adding a missing env to the cli 2010-12-15 20:11:32 +00:00
Joe Walker
0f505962d0 Merge branch 'master' of https://github.com/ajaxorg/ace
Conflicts:
	plugins/cockpit/cli.js
	plugins/cockpit/lib/ui/plain.js
	plugins/cockpit/ui/plain.css
	plugins/cockpit/ui/plain.js
	plugins/pilot/canon.js
	plugins/pilot/lib/commands/history.js
2010-12-15 19:46:40 +00:00
Joe Walker
21dce2784e lots of minor bug fixes and tweaks to the command line 2010-12-15 18:58:47 +00:00
Joe Walker
e9fd963724 adding the convept of next/previous to values in the command line 2010-12-15 18:58:47 +00:00
Joe Walker
596fc88708 significant work to push tab completion down from cli-view into requisition 2010-12-15 18:58:47 +00:00
Joe Walker
5faea6a934 fix various styling issues 2010-12-15 18:58:47 +00:00
Joe Walker
ce8f86e587 fix help command 2010-12-15 18:58:46 +00:00
Joe Walker
ad3d075bb9 fix failure to merge args for single text param 2010-12-15 18:58:46 +00:00
Joe Walker
71e069dec1 rename plain to cliView, have max height on console output and fix scroll to bottom 2010-12-15 18:58:46 +00:00
Joe Walker
9e2e7336bd making command documentation more compact and tweaking how hints work 2010-12-15 18:58:46 +00:00
Joe Walker
fc00e42b3e adding commands from skywriter 2010-12-15 18:58:46 +00:00
Joe Walker
15fddc071c separation of rows and cli, more refactoring for new world, copying images from skywriter 2010-12-15 18:58:46 +00:00
Joe Walker
b4411583dd fixed action of TAB, and made RETURN be more useful than to cause failures. Refactor plain.js and add mouse click updates 2010-12-15 18:58:46 +00:00
Joe Walker
9cff2e0908 lots of work fixing bugs with the command line, also removal of useless console.log 2010-12-15 18:58:46 +00:00
Joe Walker
1e65d71bde make the command line ui process hints at least to a basic extent 2010-12-15 18:58:46 +00:00
Fabian Jakobs
b817889ad8 add JS implementation for forEach 2010-12-15 17:33:32 +01:00
Fabian Jakobs
ac923b5813 IE fixes 2010-12-15 17:32:16 +01:00
Fabian Jakobs
a2d271677f some Opera key handling fixes (not perfect yet) 2010-12-15 15:40:53 +01:00
Fabian Jakobs
5383a297c2 comment out console.log statements as the log
module is not yet loaded at these points
2010-12-15 14:14:41 +01:00
Fabian Jakobs
7bb4950a1c fix lib functions 2010-12-15 14:14:15 +01:00
Fabian Jakobs
caec77b63f remove function, which uses getters and setters 2010-12-15 12:36:13 +01:00
Fabian Jakobs
32058c5206 fix syntax error 2010-12-15 12:35:36 +01:00
Fabian Jakobs
19eecaaefc replace lang.arrayIndexOf with ES5 indexOf() 2010-12-15 11:59:05 +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
523bbba377 remove defineProperty shim 2010-12-15 11:10:31 +01:00
Fabian Jakobs
c5f63c7112 put functions from old "ace/lib" modules directly
on "exports"
2010-12-15 11:04:14 +01:00
Kevin Dangoor
b75e43962a add register hook to register global things (settings, commands, types)
from plugins. startup hook is used for starting an individual instance.
2010-12-14 11:16:53 -08:00
Fabian Jakobs
d6ccdce008 minor fix 2010-12-14 14:18:09 +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
f370a6f7fa remove lib directory from plugins otherwise the
modules cannot be loaded with nodejs
2010-12-13 10:40:40 +01:00
Joe Walker
38c9fc7a93 a big lump of work to get the command line able to execute commands, and to hack in a trivial cli 2010-12-08 13:13:33 +00:00
Joe Walker
0c0357c177 convert settings API to have Setting class with get() and set() methods. Also several tidy-ups 2010-12-03 15:38:51 +00:00
Joe Walker
0930c37675 Rename Input to Cli. Extract CliUi as an interface. Add knowledge of cursor positioning to convert INCOMPLETE hints to INVALID if the cursor isnt in that hint. Many tidyups and tweaks as we create a test suite 2010-12-03 15:38:35 +00:00
Joe Walker
2c4bfd4310 Lots of work to flesh out the cli test suite 2010-12-03 15:38:14 +00:00
Joe Walker
3dbb9d4c65 Have Status use string constants in place of numbers for easy debugging for now 2010-12-03 15:38:13 +00:00
Joe Walker
f8af72dd07 fix hints, now all cli tests pass 2010-12-02 12:43:11 +00:00
Joe Walker
59794db155 convert Assignment from using plain text to using an Argument 2010-12-02 12:22:50 +00:00
Joe Walker
5ba1d3f75e Move types from commands/settings.js into types/settings.js 2010-12-02 11:15:31 +00:00
Joe Walker
d0fc416e01 addition of a new commandType that we use to generate completion hints 2010-12-02 11:15:31 +00:00
Joe Walker
c3d74828dc new arrayRemove method 2010-12-02 11:15:31 +00:00
Joe Walker
e544ad30fc rename Type methods: s/toString/stringify and s/fromString/parse to avoid clash with built in meaning for toString. Also add lots of documentation, a new DeferredType, and lots more checks to how types are created 2010-12-02 11:15:31 +00:00
Joe Walker
84a174f9d7 make sure new settings and commands are registered properly 2010-12-02 11:15:31 +00:00
Joe Walker
b44e8c83b6 minor tweaks 2010-12-02 11:15:31 +00:00
Joe Walker
f256175f71 A ton of fixes from the creation of unit tests. Addition of ConversionHint and Argument and classes from canon. Also Input is a lot flatter than it was (easier testing) 2010-12-02 11:15:31 +00:00
Joe Walker
e5b1a59c5e make addCommand convert parameters types to Types, make exec work on commands as well as command names, and thus remove execRequisition. Move Requisition and Assignment into canon, and lots of tidyup 2010-12-02 11:15:31 +00:00
Joe Walker
e63a3fb496 lots of new unit tests 2010-12-02 11:15:31 +00:00
Joe Walker
8dc758dcc1 ton of work porting input.js from old bespin 2010-11-26 16:12:10 +00:00