mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 10:17:59 +01:00
Revert "Implement http://vimperator.org/trac/ticket/92 (restore ;F) (revert if want)"
This should have been discussed first, especially given the current feature freeze. This could easily have been implemented as a plugin. Feel free to re-commit to the dev branch *after* discussing it, though. This reverts commit da2ab0f1abe0f110d71fbed5c10c165565f76100.
This commit is contained in:
@@ -73,7 +73,6 @@ function Hints() //{{{
|
||||
t: Mode("Follow hint in a new tab", function (elem) buffer.followLink(elem, liberator.NEW_TAB)),
|
||||
b: Mode("Follow hint in a background tab", function (elem) buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB)),
|
||||
w: Mode("Follow hint in a new window", function (elem) buffer.followLink(elem, liberator.NEW_WINDOW), extended),
|
||||
F: Mode("Follow hint sequence in tabs", hintSequenceElement),
|
||||
O: Mode("Preselect hint in an :open query", function (elem, loc) commandline.open(":", "open " + loc, modes.EX)),
|
||||
T: Mode("Preselect hint in a :tabopen query", function (elem, loc) commandline.open(":", "tabopen " + loc, modes.EX)),
|
||||
W: Mode("Preselect hint in a :winopen query", function (elem, loc) commandline.open(":", "winopen " + loc, modes.EX)),
|
||||
@@ -83,21 +82,6 @@ function Hints() //{{{
|
||||
Y: Mode("Yank hint description", function (elem) util.copyToClipboard(elem.textContent || "", true), extended)
|
||||
};
|
||||
|
||||
// Implement ';F' hint sequences. This function handles on element of the hint sequence.
|
||||
function hintSequenceElement(elem)
|
||||
{
|
||||
// Want to always open sequence hints in background
|
||||
// (remember: NEW_BACKGROUND_TAB and NEW_TAB semantics assume
|
||||
// that loadInBackground=true)
|
||||
if( options.getPref("browser.tabs.loadInBackground") )
|
||||
buffer.followLink(elem, liberator.NEW_BACKGROUND_TAB);
|
||||
else
|
||||
buffer.followLink(elem, liberator.NEW_TAB);
|
||||
|
||||
// Move to next element in sequence
|
||||
hints.show("F");
|
||||
}
|
||||
|
||||
// reset all important variables
|
||||
function reset()
|
||||
{
|
||||
|
||||
@@ -48,7 +48,6 @@ this hint mode. Then press [a]24[a] to copy the hint location.
|
||||
* |;t| [m]t[m] to open its location in a new tab
|
||||
* |;b| [m]b[m] to open its location in a new background tab
|
||||
* |;w| [m]w[m] to open its destination in a new window
|
||||
* |;F| [m]F[m] to follow a sequence of [m]<CR>[m]-delimited hints in background tabs
|
||||
* |;O| [m]O[m] to preselect its location in an [c]:open[c] query
|
||||
* |;T| [m]T[m] to preselect its location in a [c]:tabopen[c] query
|
||||
* |;W| [m]W[m] to preselect its location in a [c]:winopen[c] query
|
||||
|
||||
Reference in New Issue
Block a user