1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-25 03:11:23 +02:00
Commit Graph

138 Commits

Author SHA1 Message Date
Kris Maglione a75ef9a540 'Option' refactoring. 2009-11-13 21:32:19 -05:00
Kris Maglione a9f8e825b9 Fix :sethg diff options.js completer. 2009-11-13 18:16:27 -05:00
Doug Kearns 41b9c8e9a1 Formatting fixes. 2009-11-14 04:20:09 +11:00
Štěpán Němec 01696096b0 Fix a slight messup in options.js caused by recent refactoring (4053:0c26dd7f1345). 2009-11-12 18:51:03 +01:00
Kris Maglione f8ddb3e9c3 Resurrect my range finder, Part III: Search highlighting. 2009-11-11 06:09:26 -05:00
Kris Maglione 064f60855c Remove residual try-catch. 2009-11-09 13:26:11 -05:00
Doug Kearns bc101175a1 Whitespace fixes.
--HG--
extra : rebase_source : 3717d85606cea3b4bab637300a06c54d0af0d8c6
2009-11-10 04:54:15 +11:00
teramako 1bad5ccc1a Fix: options.js initialization at loading 2009-11-09 21:43:51 +09: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 d59a85585b Fix storage bins. 2009-11-03 00:19:55 -05:00
Martin Stubenschrott 3910c0604b Move all files to a MIT license 2009-10-03 00:32:29 +02:00
Doug Kearns 252e1965c0 Fix numeric option value validation for "".
Number("") => 0, Number("077") => 77, parseInt("008") => 0 etc.

--HG--
extra : transplant_source : %5B%A2%EC%06%BB%85A%C7%D3%B5%7E%B5%91f%9B1%8F%D3%3D%98
2009-09-25 19:36:10 +10:00
Kris Maglione a0c023113c Remove spurious entry about 't' flag for 'complete' from NEWS.. 2009-09-25 17:32:07 -04:00
Kris Maglione 4931f01353 Use options.allPrefs rather than nsIPrefBranch#getChildList 2009-09-23 01:09:11 -04:00
Kris Maglione b980157575 Migrage from liberator.saved. to extensions.liberator.saved. 2009-09-23 00:47:08 -04:00
Kris Maglione ec5a78ff2e Add more helpful information to safeSetPref messages. 2009-09-22 14:12:08 -04: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 ddfb66e3d8 Vimify "Unknown option" error message. 2009-09-12 23:49:26 +10:00
Doug Kearns 2b7e4dcb67 Remove redundant semicolons. 2009-09-04 21:58:43 +10:00
Doug Kearns 2df0e8ee49 Use extensions.liberator.saved. branch for safe-set preference values. 2009-09-04 12:30:24 +10:00
Doug Kearns 3474036fad Add Options#remove. 2009-09-04 12:30:23 +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 08ecc21277 Remove some commented-out code from :unlet action. 2009-08-27 14:46:27 +10:00
Doug Kearns 07b2795a08 Add a reference to the *.typeaheadfind.autostart bug. 2009-08-21 23:57:41 +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 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 a6fde383c0 Fix the :set! completer's title to refer to the host application.
Also fixes a 'pps' value description that refers to Firefox as well.
2009-06-28 16:03:22 +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
Kris Maglione fa16e09a9a Don't setcomm /dev/null <(js -Cv180 options.js |& grep .) browser.startup.page on startup. 2009-05-22 17:01:23 -04: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 dfb68bc9f8 Fix case of all references to Option#globalValue. 2009-05-22 10:53:07 +10:00
Doug Kearns f834cfcd6b Add some API documentation for Options and others. 2009-05-22 10:53:06 +10:00
Doug Kearns a97d419fc8 Move events.prefObserver to options.prefObserver. 2009-05-15 22:17:00 +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
Kris Maglione 43537025c6 Some esthetic and practical changes to modes and a couple of completion functions. 2009-05-05 17:23:04 -04:00
Martin Stubenschrott 5ab1771e3c changed my email address 2009-03-28 23:38:33 +01:00
anekos d3d8e21fa9 Remove empty comment
eb9211b894f384c7a6fda21fd0219378c6e8643f
2009-02-18 00:17:17 +09:00
anekos f0ff9bf2a1 Fix: set! foo="multibyte string" was broken. 2009-02-18 00:11:16 +09:00
janus_wel 688ea844cc Allow setting empty value to some stringlist options
* eventignore
    * activate
    * newtab
    * suggestengines
    * wildoptions

Signed-off-by: Kris Maglione <maglione.k@gmail.com>
2009-02-05 10:12:54 -05:00
Kris Maglione 70022ff0af Stricter number option parsing (and comment out some dump statements) 2009-01-28 09:15:26 -05:00
anekos a381a3947a Fix let-command's extraInfo
'let g:foo="c:\"' raise a error.
  -> E114: Missing quote: "
2009-01-18 03:07:47 +09:00
Ted Pavlic d29013a2fd Three small changes (copyright, template.js copyright, and tildetidy target)
a.) Cleaned up copyright language to match conventions.
(I used the memoir document class documentation as a reference, but
 these conventions are common throughout publishing)

   * The (c) symbol has no legal meaning. Only the word "Copyright" and
     an encircled lowercase c are appropriate. So the word "Copyright"
     was placed before each (c).

   * Each (C) was changed to (c).

   * Kris uses the correct symbols in copyright notices, but those
     symbols can be problematic in terminal-mode editors. Added the word
     "Copyright" as well.

   * Replaced colons/spaces after years with the word "by."

b.) Added a copyright notice to common/content/template.js. It was
    missing one entirely. Please correct if it doesn't need one or if the
    copyright isn't held by Martin.

c.) Also added a "tildetidy" target to Makefile common that includes a
    version of the find line from the existing "clean" target (however,
    this version uses "rm -fv" instead of "rm -f").
2009-01-12 09:14:54 -05:00