1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 09:44:11 +01:00

Add NEWS entry about :groups.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-11 04:15:23 -05:00
parent d06250eeef
commit caedeceadd
4 changed files with 24 additions and 10 deletions

View File

@@ -728,8 +728,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
}
list = null;
if (level == 0 && /^.*:\n$/.test())
var elem = <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
if (level == 0 && /^.*:\n$/.test(match.par))
res += <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
else {
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
res += <p highlight={group + " HelpNews"}>{
@@ -759,7 +759,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
unescape(encodeURI( // UTF-8 handling hack.
<document xmlns={NS} xmlns:dactyl={NS}
name="versions" title={config.appName + " Versions"}>
<h1 tag="versions news">{config.appName} Versions</h1>
<h1 tag="versions news NEWS">{config.appName} Versions</h1>
<toc start="2"/>
{rec(NEWS, 0)}

View File

@@ -40,9 +40,11 @@ var Tabs = Module("tabs", {
]]></>, /tab-./g, function (m) util.OS.isMacOSX ? "tab-mac" : m),
false, true);
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
if (contentDocument.readyState === "complete")
dactyl.initDocument(contentDocument);
this.timeout(function () {
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
if (contentDocument.readyState === "complete")
dactyl.initDocument(contentDocument);
});
},
cleanup: function cleanup() {

View File

@@ -125,7 +125,10 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
obj.observers[target].call(obj, subject, data);
}
catch (e) {
util.reportError(e);
if (typeof util === "undefined")
dump("dactyl: error: " + e + "\n" + (e.stack || Error().stack).replace(/^/gm, "dactyl: "));
else
util.reportError(e);
}
});
@@ -1039,7 +1042,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
JSMLoader.cleanup();
services.observer.addObserver(this, "dactyl-rehash", true);
if (!this.rehashing)
services.observer.addObserver(this, "dactyl-rehash", true);
},
"dactyl-rehash": function () {
services.observer.removeObserver(this, "dactyl-rehash");

View File

@@ -8,6 +8,16 @@
- Only visible tabs are considered in tab numbering,
gt/gn/gN, etc. [b1]
* Improved startup time by a factor of 7. [b1]
* Further improved startup time. [b6]
* Added site-local and script-local groups:
- Added the :group command to define and select groups.
- Added the -group flag to :autocmd, :command, :map, :style,
and friends.
- Mappings and commands can now be bound to groups which
execute only for certain websites.
- Autocommands, commands, mappings, and styles are now
automatically added to per-script groups so that most traces
of a script can be easily purged.
* Significant completion speed improvements, especially for
JavaScript. [b1]
* Greatly improved private mode support and :sanitize command.
@@ -76,8 +86,6 @@
and linking to source code locations). [b4]
- :downloads now opens a download list in the multi-line output
buffer. [b6]
- Added :mapgroup command and -group flag to :map, :unmap, and
:mapclear. [b6]
- Added -arg flag to :map. [b6]
- :extensions has been replaced with a more powerful :addons.
- Added -literal flag to :command. [b6]