mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 06:17:58 +01:00
[muttator] added mappings for labeling a message
This commit is contained in:
@@ -549,30 +549,27 @@ liberator.Mail = function () //{{{
|
|||||||
{ flags: liberator.Mappings.flags.COUNT });
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
// tagging messages
|
// tagging messages
|
||||||
liberator.mappings.add(modes, ["lr"],
|
liberator.mappings.add(modes, ["l"],
|
||||||
"Toggle selected messages read",
|
"Label message",
|
||||||
function ()
|
function (arg)
|
||||||
{
|
{
|
||||||
if (!GetSelectedMessages())
|
if (!GetSelectedMessages())
|
||||||
|
return liberator.beep();
|
||||||
|
|
||||||
|
switch (arg)
|
||||||
{
|
{
|
||||||
liberator.beep();
|
case "r": MsgMarkMsgAsRead(); break;
|
||||||
return;
|
case "s": MsgMarkMsgAsFlagged(); break;
|
||||||
|
case "i": ToggleMessageTagKey(1); break; // Important
|
||||||
|
case "w": ToggleMessageTagKey(2); break; // Work
|
||||||
|
case "p": ToggleMessageTagKey(3); break; // Personal
|
||||||
|
case "t": ToggleMessageTagKey(4); break; // TODO
|
||||||
|
case "l": ToggleMessageTagKey(5); break; // Later
|
||||||
|
default: liberator.beep();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
MsgMarkMsgAsRead();
|
|
||||||
});
|
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["ls"],
|
|
||||||
"Toggle selected messages starred",
|
|
||||||
function ()
|
|
||||||
{
|
{
|
||||||
if (!GetSelectedMessages())
|
flags: liberator.Mappings.flags.ARGUMENT
|
||||||
{
|
|
||||||
liberator.beep();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
MsgMarkMsgAsFlagged();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: change binding?
|
// TODO: change binding?
|
||||||
@@ -581,10 +578,7 @@ liberator.Mail = function () //{{{
|
|||||||
function ()
|
function ()
|
||||||
{
|
{
|
||||||
if (liberator.mail.currentFolder.isServer)
|
if (liberator.mail.currentFolder.isServer)
|
||||||
{
|
return liberator.beep();
|
||||||
liberator.beep();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
liberator.mail.currentFolder.markAllMessagesRead();
|
liberator.mail.currentFolder.markAllMessagesRead();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user