1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 16:47:58 +01:00
Commit Graph

88 Commits

Author SHA1 Message Date
Kris Maglione
f0c87aeae5 Properly quote strings. 2009-11-15 02:43:53 -05:00
Kris Maglione
cdaa26f968 Add 'javascript' module. Misc fixes along the way. 2009-11-15 02:08:10 -05:00
Doug Kearns
52749d6722 Remove some redundant uses of "new". 2009-11-14 23:07:56 +11:00
Doug Kearns
6cc43ad29a Formatting fixes. 2009-11-14 21:57:32 +11:00
Kris Maglione
91fd0e1169 Get rid of absurd strict JS warnings. 2009-11-14 04:38:36 -05:00
Doug Kearns
41b9c8e9a1 Formatting fixes. 2009-11-14 04:20:09 +11:00
Kris Maglione
12012af693 More RangeFind work. 2009-11-13 03:00:46 -05:00
Kris Maglione
ce2b7893e4 Fix some crap. Closes issue #145. 2009-11-09 08:09:27 -05:00
Kris Maglione
a72068c9f7 Refactor modules.config. 2009-11-09 03:12:27 -05:00
Kris Maglione
6a25312c7d Recfactoring:
* Standard module format. All modules are explicitly declared
   as modules, they're created via a constructor and
   instantiated automatically. They're dependency aware. They
   stringify properly.

 * Classes are declared the same way (rather like Structs
   already were). They also stringify properly. Plus, each
   instance has a rather nifty closure member that closes all
   of its methods around 'this', so you can pass them to map,
   forEach, setTimeout, etc. Modules are themselves classes,
   with a special metaclass, as it were.

 * Doug Crockford is dead, metaphorically speaking.
   Closure-based classes just don't fit into any of the common
   JavaScript frameworks, and they're inefficient and
   confusing. Now, all class and module members are accessed
   explicitly via 'this', which makes it very clear that
   they're class members and not (e.g.) local variables,
   without anything nasty like Hungarian notation.

 * Strictly one module per file. Classes that belong to a
   module live in the same file.

 * For the moment, there are quite a few utility functions
   sitting in base.c, because my class implementation used
   them, and I haven't had the time or inclination to sort them
   out. I plan to reconcile them with the current mess that is
   the util namespace.

 * Changed bracing style.
2009-11-08 20:54:31 -05:00
Kris Maglione
1ce498401e Add liberator.assert. 2009-11-03 02:36:48 -05:00
Kris Maglione
9e531ca343 Fix Xulmus, etc.
--HG--
branch : xslt
2009-10-25 13:43:25 -04:00
Martin Stubenschrott
3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns
688b529fdc Use Ex command completion for the second arg of :command.
--HG--
extra : transplant_source : %A2%158%CF%98%7F%16%B4iz%22%12_%A0%B85%FD%DE%05%1C
2009-09-26 22:54:09 +10:00
Doug Kearns
dbc99ad956 Revert "Move util.Array to modules.Array_."
This reverts commit d6cdda48a18c9fa05365b50046470fec9935fd3c.

Array_ method chaining needs fixing.
2009-09-15 13:20:06 +10:00
Doug Kearns
7c66dc2b17 Move util.Array to modules.Array_. 2009-09-14 15:19:56 +10:00
Doug Kearns
2b7e4dcb67 Remove redundant semicolons. 2009-09-04 21:58:43 +10:00
Doug Kearns
cd52ef6ad3 Fix parsing of Ex commands run with leading whitespace. 2009-09-04 12:31:48 +10:00
Kris Maglione
b8d972ca94 Make some attempt to respect "Clear Private Data" 2009-09-03 17:29:26 -04:00
Doug Kearns
1a3394d1a0 Fix :doautoall. 2009-08-27 14:46:37 +10:00
Doug Kearns
35574698d3 Improve the error message when a custom command completer is undefined. 2009-08-27 14:46:31 +10:00
Doug Kearns
c958616337 Formatting fixes. 2009-08-27 14:46:30 +10:00
Doug Kearns
5f6405be03 Add support for verbose :set querying of options.
Querying of commands, autocommands, mappings, abbreviations, highlight
groups, and styles should also be supported.
2009-08-27 14:46:29 +10:00
Doug Kearns
cc187d8372 Allow multiple +c and ++cmd command line options. 2009-08-21 23:57:37 +10:00
Kris Maglione
9d77c018ca Fix something to do with <a>. 2009-08-19 14:03:14 -04:00
Doug Kearns
0cab11f017 Add a description to :command -nargs completion. 2009-08-16 01:35:04 +10:00
Doug Kearns
eca673911e Fix #335 (Escape quotes in page title when adding bookmarks with 'a' command). 2009-08-10 13:56:10 +10:00
Doug Kearns
77458e5b8a Whitespace and semicolon fixes. 2009-08-10 02:15:23 +10:00
Doug Kearns
5e2b5b014b Rename {Command,Map)#isUser{Command,Map} => #user. 2009-07-07 22:08:51 +10:00
Doug Kearns
8ef5ab8178 Add a Map#isUserMap property.
This is symmetrical with Command#isUserCommand although both should
probably be renamed #user given the other property names.
2009-07-01 18:52:32 +10:00
Doug Kearns
f9ffc9138a Cleanup and add some documention. 2009-06-29 19:22:09 +10:00
Doug Kearns
6f2eb2d1ef Split Map.flags into individual properties of Map. 2009-06-28 16:03:21 +10:00
Doug Kearns
ec8d7686fc Move the standard type completers to appropriate modules. 2009-06-18 22:02:21 +10:00
Doug Kearns
e5c6d58a88 Fix some "for each" iteration of arrays. 2009-06-17 16:22:53 +10:00
Doug Kearns
bee39cacb7 Don't include the default -description value when serializing commands. 2009-06-04 17:05:53 +10:00
Doug Kearns
e762b6f9d4 Add a -description option to :command. 2009-06-04 14:28:32 +10:00
Doug Kearns
6d7b94daa6 Add missing semicolons. 2009-06-02 16:59:24 +10:00
Doug Kearns
64a9c9554c Fix more function formatting faux pas as per the style guide. 2009-06-01 16:46:09 +10:00
Doug Kearns
73759f78f8 Remove silly guard clause from addCommand. 2009-05-24 23:32:05 +10:00
Kris Maglione
e9fc3327ed Make :undo a bit saner. Add TODO about config.name checks. 2009-05-22 13:55:22 -04:00
Doug Kearns
ee7e1244d3 Limit @: to config.browserModes. 2009-05-22 18:42:40 +10:00
Doug Kearns
da89552a1e Add @: mapping. 2009-05-22 12:47:57 +10:00
Doug Kearns
e12af69a09 Add some API docs for liberator. 2009-05-22 10:59:53 +10:00
Doug Kearns
26dabbfd0d Change multiline error message guard clauses to single line formatting.
Also apply similar formattng fixes to conditional blocks as per
standard.
2009-05-22 10:53:17 +10:00
Doug Kearns
111e27bf2e Add some very rough API documentation for Events. 2009-05-22 10:53:14 +10:00
Doug Kearns
f834cfcd6b Add some API documentation for Options and others. 2009-05-22 10:53:06 +10:00
Doug Kearns
56f1fe6c50 Remove some silly argument guard clauses.
Removed from Command(), Mapping() and Option().

Throw an exception if you care enough to check but we don't do so
anywhere else.
2009-05-15 00:39:47 +10:00
Doug Kearns
a487d34d7d Add some rough documentation for Mappings.
Someone should really add some polished documentation.
2009-05-15 00:37:46 +10:00
Kris Maglione
f3f70d5cb8 General cleanup related to last commit. 2009-04-15 16:31:32 -04:00
Martin Stubenschrott
5ab1771e3c changed my email address 2009-03-28 23:38:33 +01:00