mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-05 09:43:31 +02: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)); },
|
function (count) { liberator.buffer.scrollLines(-(count > 1 ? count : 1)); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ 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",
|
"Scroll document to the left",
|
||||||
function (count) { liberator.buffer.scrollColumns(-(count > 1 ? count : 1)); },
|
function (count) { liberator.buffer.scrollColumns(-(count > 1 ? count : 1)); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ 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",
|
"Scroll document to the right",
|
||||||
function (count) { liberator.buffer.scrollColumns(count > 1 ? count : 1); },
|
function (count) { liberator.buffer.scrollColumns(count > 1 ? count : 1); },
|
||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|||||||
@@ -201,6 +201,27 @@ liberator.Mail = function ()
|
|||||||
"Forward message inline",
|
"Forward message inline",
|
||||||
function () { goDoCommand("cmd_forwardInline"); });
|
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
|
// UNDO/REDO
|
||||||
liberator.mappings.add(modes, ["u"],
|
liberator.mappings.add(modes, ["u"],
|
||||||
|
|||||||
Reference in New Issue
Block a user