mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:47:59 +01:00
better :q
This commit is contained in:
1
AUTHORS
1
AUTHORS
@@ -14,4 +14,5 @@ Patches:
|
|||||||
* Hannes Rist (:set titlestring support)
|
* Hannes Rist (:set titlestring support)
|
||||||
* Marco Candrian (shift-insert patch)
|
* Marco Candrian (shift-insert patch)
|
||||||
* Nikolai Weibull ($VIMPERATOR_HOME)
|
* Nikolai Weibull ($VIMPERATOR_HOME)
|
||||||
|
* Joseph Xu (supporting multiple top level windows better)
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
1
Donators
1
Donators
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
2007 (most recent donators first):
|
2007 (most recent donators first):
|
||||||
|
|
||||||
|
* Ivo-Jose Jimenez-Ramos
|
||||||
* Robert Heckel
|
* Robert Heckel
|
||||||
* Ramana Kumar
|
* Ramana Kumar
|
||||||
* Thomas Svensen
|
* Thomas Svensen
|
||||||
|
|||||||
1
NEWS
1
NEWS
@@ -2,6 +2,7 @@
|
|||||||
2007-xx-xx:
|
2007-xx-xx:
|
||||||
* version 0.6
|
* version 0.6
|
||||||
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
||||||
|
* :q doesn't close the whole browser, if there are more than one windows
|
||||||
* new gb and gB mappings to repeat the last :buffer[!] command,
|
* new gb and gB mappings to repeat the last :buffer[!] command,
|
||||||
* :ls, :history and :bmarks output is now hyperlinked
|
* :ls, :history and :bmarks output is now hyperlinked
|
||||||
* tags and keyword support for :bmark
|
* tags and keyword support for :bmark
|
||||||
|
|||||||
@@ -1350,8 +1350,9 @@ function Commands() //{{{
|
|||||||
addDefaultCommand(new Command(["q[uit]"],
|
addDefaultCommand(new Command(["q[uit]"],
|
||||||
function() { vimperator.tabs.remove(getBrowser().mCurrentTab, 1, false, 1); },
|
function() { vimperator.tabs.remove(getBrowser().mCurrentTab, 1, false, 1); },
|
||||||
{
|
{
|
||||||
short_help: "Quit current tab or quit Vimperator if this was the last tab",
|
short_help: "Quit current tab",
|
||||||
help: "When quitting Vimperator, the session is not stored."
|
help: "If this is the last tab in the window, close the window. If this was the " +
|
||||||
|
"last window, close Vimperator. When quitting Vimperator, the session is not stored."
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
addDefaultCommand(new Command(["quita[ll]", "qa[ll]"],
|
addDefaultCommand(new Command(["quita[ll]", "qa[ll]"],
|
||||||
|
|||||||
@@ -172,8 +172,12 @@ function Tabs() //{{{
|
|||||||
count = 1;
|
count = 1;
|
||||||
|
|
||||||
if (quit_on_last_tab >= 1 && getBrowser().mTabs.length <= count)
|
if (quit_on_last_tab >= 1 && getBrowser().mTabs.length <= count)
|
||||||
|
{
|
||||||
|
if (vimperator.windows.length > 1)
|
||||||
|
window.close();
|
||||||
|
else
|
||||||
vimperator.quit(quit_on_last_tab == 2);
|
vimperator.quit(quit_on_last_tab == 2);
|
||||||
|
}
|
||||||
|
|
||||||
var index = this.index(tab);
|
var index = this.index(tab);
|
||||||
if (focus_left_tab)
|
if (focus_left_tab)
|
||||||
|
|||||||
@@ -812,8 +812,17 @@ const vimperator = (function() //{{{
|
|||||||
for (; now - then < ms; now = new Date().getTime()) {
|
for (; now - then < ms; now = new Date().getTime()) {
|
||||||
mainThread.processNextEvent(true);
|
mainThread.processNextEvent(true);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
get windows()
|
||||||
|
{
|
||||||
|
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator);
|
||||||
|
var wa = [];
|
||||||
|
var enumerator = wm.getEnumerator("navigator:browser");
|
||||||
|
while (enumerator.hasMoreElements())
|
||||||
|
wa.push(enumerator.getNext());
|
||||||
|
return wa;
|
||||||
|
}
|
||||||
} //}}}
|
} //}}}
|
||||||
})(); //}}}
|
})(); //}}}
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,9 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
color: green;
|
color: green;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.hl-URL:hover {
|
||||||
|
background-color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
/* MOW */
|
/* MOW */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user