mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 22:45:44 +01:00
Add NEWS entry about :groups.
--HG-- branch : groups
This commit is contained in:
@@ -728,8 +728,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
}
|
}
|
||||||
|
|
||||||
list = null;
|
list = null;
|
||||||
if (level == 0 && /^.*:\n$/.test())
|
if (level == 0 && /^.*:\n$/.test(match.par))
|
||||||
var elem = <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
res += <h2>{template.linkifyHelp(par.slice(0, -1), true)}</h2>;
|
||||||
else {
|
else {
|
||||||
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
let [, a, b] = /^(IMPORTANT:?)?([^]*)/.exec(par);
|
||||||
res += <p highlight={group + " HelpNews"}>{
|
res += <p highlight={group + " HelpNews"}>{
|
||||||
@@ -759,7 +759,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
unescape(encodeURI( // UTF-8 handling hack.
|
unescape(encodeURI( // UTF-8 handling hack.
|
||||||
<document xmlns={NS} xmlns:dactyl={NS}
|
<document xmlns={NS} xmlns:dactyl={NS}
|
||||||
name="versions" title={config.appName + " Versions"}>
|
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"/>
|
<toc start="2"/>
|
||||||
|
|
||||||
{rec(NEWS, 0)}
|
{rec(NEWS, 0)}
|
||||||
|
|||||||
@@ -40,9 +40,11 @@ var Tabs = Module("tabs", {
|
|||||||
]]></>, /tab-./g, function (m) util.OS.isMacOSX ? "tab-mac" : m),
|
]]></>, /tab-./g, function (m) util.OS.isMacOSX ? "tab-mac" : m),
|
||||||
false, true);
|
false, true);
|
||||||
|
|
||||||
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
this.timeout(function () {
|
||||||
if (contentDocument.readyState === "complete")
|
for (let { linkedBrowser: { contentDocument } } in values(this.allTabs))
|
||||||
dactyl.initDocument(contentDocument);
|
if (contentDocument.readyState === "complete")
|
||||||
|
dactyl.initDocument(contentDocument);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanup: function cleanup() {
|
cleanup: function cleanup() {
|
||||||
|
|||||||
@@ -125,7 +125,10 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
obj.observers[target].call(obj, subject, data);
|
obj.observers[target].call(obj, subject, data);
|
||||||
}
|
}
|
||||||
catch (e) {
|
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();
|
JSMLoader.cleanup();
|
||||||
|
|
||||||
services.observer.addObserver(this, "dactyl-rehash", true);
|
if (!this.rehashing)
|
||||||
|
services.observer.addObserver(this, "dactyl-rehash", true);
|
||||||
},
|
},
|
||||||
"dactyl-rehash": function () {
|
"dactyl-rehash": function () {
|
||||||
services.observer.removeObserver(this, "dactyl-rehash");
|
services.observer.removeObserver(this, "dactyl-rehash");
|
||||||
|
|||||||
@@ -8,6 +8,16 @@
|
|||||||
- Only visible tabs are considered in tab numbering,
|
- Only visible tabs are considered in tab numbering,
|
||||||
gt/gn/gN, etc. [b1]
|
gt/gn/gN, etc. [b1]
|
||||||
* Improved startup time by a factor of 7. [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
|
* Significant completion speed improvements, especially for
|
||||||
JavaScript. [b1]
|
JavaScript. [b1]
|
||||||
* Greatly improved private mode support and :sanitize command.
|
* Greatly improved private mode support and :sanitize command.
|
||||||
@@ -76,8 +86,6 @@
|
|||||||
and linking to source code locations). [b4]
|
and linking to source code locations). [b4]
|
||||||
- :downloads now opens a download list in the multi-line output
|
- :downloads now opens a download list in the multi-line output
|
||||||
buffer. [b6]
|
buffer. [b6]
|
||||||
- Added :mapgroup command and -group flag to :map, :unmap, and
|
|
||||||
:mapclear. [b6]
|
|
||||||
- Added -arg flag to :map. [b6]
|
- Added -arg flag to :map. [b6]
|
||||||
- :extensions has been replaced with a more powerful :addons.
|
- :extensions has been replaced with a more powerful :addons.
|
||||||
- Added -literal flag to :command. [b6]
|
- Added -literal flag to :command. [b6]
|
||||||
|
|||||||
Reference in New Issue
Block a user