mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 07:13:32 +01:00
:qa closes the current window (because Vim habits are hard to break and shouldn't be destructive). :exit quits the app.
This commit is contained in:
@@ -1839,6 +1839,15 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
literal: 0
|
literal: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
commands.add(["exit", "x"],
|
||||||
|
"Quit " + config.appName,
|
||||||
|
function (args) {
|
||||||
|
dactyl.quit(false, args.bang);
|
||||||
|
}, {
|
||||||
|
argCount: "0",
|
||||||
|
bang: true
|
||||||
|
});
|
||||||
|
|
||||||
commands.add(["q[uit]"],
|
commands.add(["q[uit]"],
|
||||||
dactyl.has("tabs") ? "Quit current tab" : "Quit application",
|
dactyl.has("tabs") ? "Quit current tab" : "Quit application",
|
||||||
function (args) {
|
function (args) {
|
||||||
|
|||||||
@@ -747,8 +747,9 @@ var Tabs = Module("tabs", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
commands.add(["quita[ll]", "qa[ll]"],
|
commands.add(["quita[ll]", "qa[ll]"],
|
||||||
"Quit " + config.appName,
|
"Quit this " + config.appName + " window",
|
||||||
function (args) { dactyl.quit(false, args.bang); }, {
|
function (args) { window.close(); },
|
||||||
|
{
|
||||||
argCount: "0",
|
argCount: "0",
|
||||||
bang: true
|
bang: true
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -449,6 +449,18 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
|
|||||||
|
|
||||||
<h2 tag="quitting save-session">Quitting</h2>
|
<h2 tag="quitting save-session">Quitting</h2>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags>:x :exit</tags>
|
||||||
|
<strut/>
|
||||||
|
<spec>:exit</spec>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
Quit &dactyl.appName;, no matter how many tabs/windows
|
||||||
|
are open. The session is not stored.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags>:q :quit</tags>
|
<tags>:q :quit</tags>
|
||||||
<strut/>
|
<strut/>
|
||||||
@@ -467,8 +479,8 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
|
|||||||
<spec>:quita<oa>ll</oa></spec>
|
<spec>:quita<oa>ll</oa></spec>
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
Quit &dactyl.appName;, no matter how many tabs/windows
|
Close the current &dactyl.appName; window, no matter how
|
||||||
are open. The session is not stored.
|
many tabs are open.
|
||||||
</p>
|
</p>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -90,6 +90,8 @@
|
|||||||
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. Added -sort flag. [b6][b7]
|
buffer. Added -sort flag. [b6][b7]
|
||||||
|
- :qa closes only the current window, per Vim. [b7]
|
||||||
|
- Added :exit command. [b7]
|
||||||
- Added :dlclear command. [b7]
|
- Added :dlclear command. [b7]
|
||||||
- :extensions has been replaced with a more powerful :addons. [b6]
|
- :extensions has been replaced with a more powerful :addons. [b6]
|
||||||
- :javascript! now opens a Read Eval Print Loop. [b6]
|
- :javascript! now opens a Read Eval Print Loop. [b6]
|
||||||
|
|||||||
Reference in New Issue
Block a user