mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 12:05:47 +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
|
||||
* keywords in :open <arg> have higher priority than local files now
|
||||
* add :set online to control the "work offline" menu item
|
||||
* add :jumps command to list current tab's history
|
||||
* many small bug fixes
|
||||
|
||||
2008-06-03:
|
||||
|
||||
2
TODO
2
TODO
@@ -15,6 +15,8 @@ BUGS:
|
||||
- ;f seems broken after a page load
|
||||
- ;s saves the page rather than the image
|
||||
- :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:
|
||||
8 middleclick in content == p, and if command line is open, paste there the clipboard buffer
|
||||
|
||||
@@ -129,6 +129,33 @@ liberator.Bookmarks = function () //{{{
|
||||
////////////////////// 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]"],
|
||||
"Add a bookmark",
|
||||
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.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|L| |<C-i>| |CTRL-i| |:fo| |:fw| |:forward|
|
||||
||:[count]fo[rward][!] [url]|| +
|
||||
||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|
|
||||
||[count]gu||
|
||||
________________________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user