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:
@@ -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 });
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user