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

116 Commits

Author SHA1 Message Date
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
336eb4fefa Fix horifically slow JS completion. 2009-11-04 01:52:21 -05:00
Kris Maglione
d4b818b7d7 Yay XPCSafeJSObjectWrapper. 2009-11-03 06:11:53 -05:00
Kris Maglione
1ce498401e Add liberator.assert. 2009-11-03 02:36:48 -05:00
Kris Maglione
8fc29193e1 Fix broken file completion. 2009-10-31 19:01:59 -04:00
Kris Maglione
7a9889b18c Add IO#File.
New review:
owner: dougkearns
I like this for the most part, except that it has to go to lengths
to wrap the original nsIFile correctly, an that it can't be passed
directly to other XPCOM components. It makes most operations on
files a lot cleaner, though.
2009-10-31 17:40:16 -04:00
Kris Maglione
cf08acaf69 Trigger plugin onUnload handlers at shutdown.
--HG--
extra : rebase_source : 4649d9517d990bbc1dc9efc7b73518bdaa5919ec
2009-10-10 23:43:06 -04:00
Doug Kearns
e041219339 Whitespace fixes. 2009-10-03 16:58:45 +10:00
Martin Stubenschrott
3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns
2b5067dc83 Fix :!! message window command line string.
The ! should be expanded to the previous command string.
2009-10-03 01:37:21 +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
2ea5eda553 Remove silly type checking from io.{read,write}File. 2009-09-14 15:41:58 +10:00
Doug Kearns
7c66dc2b17 Move util.Array to modules.Array_. 2009-09-14 15:19:56 +10:00
Kris Maglione
66a2579fb9 Add :styenable, :stydisable, :stytoggle 2009-09-10 18:22:26 -04:00
Doug Kearns
2b7e4dcb67 Remove redundant semicolons. 2009-09-04 21:58:43 +10:00
Doug Kearns
bc1163c0c7 Remove some invalid comments. 2009-08-27 14:46:36 +10:00
Doug Kearns
97236c4839 Remove some commented-out code from Events. 2009-08-27 14:46:32 +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
Kris Maglione
9d77c018ca Fix something to do with <a>. 2009-08-19 14:03:14 -04:00
Doug Kearns
77458e5b8a Whitespace and semicolon fixes. 2009-08-10 02:15:23 +10:00
Doug Kearns
f9ffc9138a Cleanup and add some documention. 2009-06-29 19:22:09 +10:00
Doug Kearns
701f9ef494 Move filename calculations from io.createTempFile to config.tempFile. 2009-06-29 19:09:11 +10:00
Doug Kearns
d2c1c02c38 Fix the RC file modeline ft setting written with :mkv.
Each extension has its own associated Vim filetype.
2009-06-29 19:09:10 +10:00
Doug Kearns
e2e31528e2 Normalise the use of "func" vs "fn" for function references.
"func" had the numbers.
2009-06-29 19:09:08 +10:00
Doug Kearns
776f9bb425 Cleanup some references to "Firefox" in common/*. 2009-06-28 16:03:23 +10:00
Doug Kearns
4afccff5e9 Always try and return a nsIFile from io.createTempFile. 2009-06-28 16:03:20 +10:00
Doug Kearns
ec8d7686fc Move the standard type completers to appropriate modules. 2009-06-18 22:02:21 +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
cd3364197f Fix some minor function formatting faux pas. 2009-06-01 16:46:07 +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
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
d248f92500 Improve :mkvimperatorrc error messages. 2009-05-22 10:53:10 +10:00
Doug Kearns
1f307a9918 Support the criticism of the .vimperatorrc.local line in the RC file. 2009-05-22 10:53:03 +10:00
Doug Kearns
bd1798726f Use @returns rather than @return in API docs. 2009-05-22 10:53:02 +10:00
Doug Kearns
895e40a803 Fix error message for :source with too many args. 2009-05-13 01:39:52 +10:00
Doug Kearns
7fc37fe79c Remove some old/invalid FIXME comments. 2009-05-13 01:34:09 +10:00
Kris Maglione
dbf60914ab Add 'fileencoding' 2009-05-01 15:19:35 -04:00
Kris Maglione
8cd587b496 Fix #212 2009-04-15 18:30:30 -04:00
Doug Kearns
7dc432d147 Refactor IO.PATH_SEP. 2009-04-04 20:28:16 +11:00
Ted Pavlic
bd72e0191a Make implicit semicolon explicit in new try line. 2009-04-02 17:57:09 -04:00
Ted Pavlic
15ff0ace59 Attempt to make PATH_SEP code work on OS/X. Catch initWithPath(/) exception. 2009-04-02 17:40:37 -04:00
Doug Kearns
374297c5da Merge branch 'master' into vimperator-2.1
Conflicts:
	common/content/completion.js
	common/content/liberator.js
	vimperator/NEWS
2009-03-29 11:18:10 +11:00
Martin Stubenschrott
5ab1771e3c changed my email address 2009-03-28 23:38:33 +01:00
Doug Kearns
9de03780e4 Add @returns attribute to io#getRCFile documentation. 2009-03-14 17:14:17 +11:00
Doug Kearns
59cdf67f57 Merge branch 'master' into vimperator-2.1 2009-03-11 00:02:00 +11:00
Doug Kearns
f82b03f796 Fix escaped path separator in messages on Windows. 2009-03-01 02:49:18 +11:00
Kris Maglione
347938bfca Merge branch 'master' into vimperator-2.1
Conflicts:
	vimperator/NEWS
2009-01-21 03:40:04 -05:00
Martin Stubenschrott
08dbdcb7ba Fixed external editor on Linux, maybe broke it for some other system? 2009-01-19 20:28:49 +01:00