mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 07:24:13 +01:00
new :jumps command (thanks a lot, Konstantin)
This commit is contained in:
1
NEWS
1
NEWS
@@ -23,6 +23,7 @@
|
|||||||
* don't pass certain keys like ctrl-o or ctrl-n to firefox in insert mode
|
* don't pass certain keys like ctrl-o or ctrl-n to firefox in insert mode
|
||||||
* keywords in :open <arg> have higher priority than local files now
|
* keywords in :open <arg> have higher priority than local files now
|
||||||
* add :set online to control the "work offline" menu item
|
* add :set online to control the "work offline" menu item
|
||||||
|
* add :jumps command to list current tab's history
|
||||||
* many small bug fixes
|
* many small bug fixes
|
||||||
|
|
||||||
2008-06-03:
|
2008-06-03:
|
||||||
|
|||||||
2
TODO
2
TODO
@@ -15,6 +15,8 @@ BUGS:
|
|||||||
- ;f seems broken after a page load
|
- ;f seems broken after a page load
|
||||||
- ;s saves the page rather than the image
|
- ;s saves the page rather than the image
|
||||||
- :set! browser.urlbar.clickSelectsAll=true -> clicking in the location bar unfocuses it immediately
|
- :set! browser.urlbar.clickSelectsAll=true -> clicking in the location bar unfocuses it immediately
|
||||||
|
- http://apcmag.com/why_os_x_106_snow_leopard_should_leave_powerpc_in_the_cold.htm - scrolls the wrong
|
||||||
|
window with j/k (the green slashdot thing for me).
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
||||||
|
|||||||
@@ -129,6 +129,33 @@ liberator.Bookmarks = function () //{{{
|
|||||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
|
liberator.commands.add(["ju[mps]"],
|
||||||
|
"Show jumplist",
|
||||||
|
function ()
|
||||||
|
{
|
||||||
|
var sh = getWebNavigation().sessionHistory;
|
||||||
|
var list = ":" + (liberator.util.escapeHTML(liberator.commandline.getCommand()) || "jumps") + "<br/>" + "<table>";
|
||||||
|
list += "<tr style=\"text-align: left; color: magenta; font-weight: bold;\"><th colspan=\"2\">jump</th><th>title</th><th>URI</th></tr>";
|
||||||
|
var num = -sh.index;
|
||||||
|
|
||||||
|
for (var i = 0; i < sh.count; i++)
|
||||||
|
{
|
||||||
|
var entry = sh.getEntryAtIndex(i, false);
|
||||||
|
var uri = entry.URI.spec;
|
||||||
|
var title = entry.title;
|
||||||
|
var indicator = i == sh.index? "<span style=\"color: blue;\">></span>": " ";
|
||||||
|
list += "<tr><td>" + indicator + "<td>" + Math.abs(num) + "</td><td style=\"width: 250px; max-width: 500px; overflow: hidden;\">" + title +
|
||||||
|
"</td><td><a href=\"#\" class=\"hl-URL jump-list\">" + uri + "</a></td></tr>";
|
||||||
|
num++;
|
||||||
|
}
|
||||||
|
|
||||||
|
list += "</table>";
|
||||||
|
|
||||||
|
liberator.commandline.echo(list, liberator.commandline.HL_NORMAL, liberator.commandline.FORCE_MULTILINE);
|
||||||
|
},
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
|
||||||
liberator.commands.add(["bma[rk]"],
|
liberator.commands.add(["bma[rk]"],
|
||||||
"Add a bookmark",
|
"Add a bookmark",
|
||||||
function (args)
|
function (args)
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ Go [count] pages back in the browser history.
|
|||||||
The special version [c]:back![c] goes to the beginning of the browser history.
|
The special version [c]:back![c] goes to the beginning of the browser history.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|L| |<C-i>| |CTRL-i| |:fo| |:fw| |:forward|
|
|L| |<C-i>| |CTRL-i| |:fo| |:fw| |:forward|
|
||||||
||:[count]fo[rward][!] [url]|| +
|
||:[count]fo[rward][!] [url]|| +
|
||||||
||CTRL-i||
|
||CTRL-i||
|
||||||
@@ -99,6 +100,17 @@ The special version [c]:forward![c] goes to the end of the browser history.
|
|||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|:ju| |:jumps|
|
||||||
|
||:ju[mps]||
|
||||||
|
________________________________________________________________________________
|
||||||
|
List all jumps aka current tab's history aka session history.
|
||||||
|
|
||||||
|
Current history position is marked with >, jump numbers are counters
|
||||||
|
to be used with [c]:back[c] (above zero record) or [c]:forward[c]
|
||||||
|
(below zero record).
|
||||||
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|gu|
|
|gu|
|
||||||
||[count]gu||
|
||[count]gu||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user