1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:28:01 +01:00

[muttator] initial ys and yf mapping, better/more y* commands to come

This commit is contained in:
Martin Stubenschrott
2008-06-09 11:57:11 +00:00
parent 45390dac8b
commit 02023cb9d5

View File

@@ -548,14 +548,6 @@ liberator.Mail = function () //{{{
MsgMarkMsgAsRead();
});
/*liberator.mappings.add(modes, ["tR"],
"Tag thread as read",
function ()
{
// TODO: ensure thread or beep
MsgMarkThreadAsRead();
});*/
liberator.mappings.add(modes, ["ls"],
"Toggle selected messages starred",
@@ -593,6 +585,7 @@ liberator.Mail = function () //{{{
});
});
// DISPLAY OPTIONS
liberator.mappings.add(modes, ["h"],
"Toggle displayed headers",
function ()
@@ -610,6 +603,31 @@ liberator.Mail = function () //{{{
liberator.mail.setHTML(want_html ? 1 : 0);
});
// YANKING TEXT
liberator.mappings.add(modes, ["ys"],
"Yank subject",
function ()
{
try
{
var subject = gDBView.hdrForFirstSelectedMessage.mime2DecodedSubject;
liberator.util.copyToClipboard(subject, true);
}
catch (e) { liberator.beep(); }
});
liberator.mappings.add(modes, ["yf"],
"Yank From:",
function ()
{
try
{
var author = gDBView.hdrForFirstSelectedMessage.mime2DecodedAuthor;
liberator.util.copyToClipboard(author, true);
}
catch (e) { liberator.beep(); }
});
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// COMMANDS ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{