1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 00:14:11 +01:00

[muttator] kmail-like navigation

This commit is contained in:
Martin Stubenschrott
2008-05-01 09:45:37 +00:00
parent 3c4edd335b
commit 5a28cd8948
2 changed files with 23 additions and 2 deletions

View File

@@ -216,12 +216,12 @@ liberator.Buffer = function () //{{{
function (count) { liberator.buffer.scrollLines(-(count > 1 ? count : 1)); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["h", "<Left>"],
liberator.mappings.add(modes, liberator.has("mail") ? ["h"] : ["h", "<Left>"],
"Scroll document to the left",
function (count) { liberator.buffer.scrollColumns(-(count > 1 ? count : 1)); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["l", "<Right>"],
liberator.mappings.add(modes, liberator.has("mail") ? ["l"] : ["l", "<Right>"],
"Scroll document to the right",
function (count) { liberator.buffer.scrollColumns(count > 1 ? count : 1); },
{ flags: liberator.Mappings.flags.COUNT });

View File

@@ -201,6 +201,27 @@ liberator.Mail = function ()
"Forward message inline",
function () { goDoCommand("cmd_forwardInline"); });
// SCROLLING
liberator.mappings.add(modes, ["<Down>"],
"Scroll message down",
function (count) { liberator.buffer.scrollLines(count > 1 ? count : 1); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["<Up>"],
"Scroll message up",
function (count) { liberator.buffer.scrollLines(-(count > 1 ? count : 1)); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add([liberator.modes.MESSAGE], ["<Left>"],
"Select previous message",
function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, true, count); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add([liberator.modes.MESSAGE], ["<Right>"],
"Select next message",
function (count) { liberator.mail.selectMessage(function (msg) { return true; }, false, false, count); },
{ flags: liberator.Mappings.flags.COUNT });
// UNDO/REDO
liberator.mappings.add(modes, ["u"],