mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 16:52:25 +01:00
[muttator] some new compose mappings
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,6 +1,8 @@
|
||||
<pre>
|
||||
2008-06-xx:
|
||||
* version 1.2
|
||||
* IMPORTANT: removed old :buffers! buffer window, as it was ugly and slightly broken
|
||||
use "B" or :buffers instead
|
||||
* :bdelete accepts an optional argument now
|
||||
* renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
|
||||
* don't pass any ctrl- or alt- prefixed keys to firefox in insert mode
|
||||
|
||||
@@ -180,8 +180,22 @@ liberator.Buffer = function () //{{{
|
||||
"Show current website with a minimal style sheet to make it easily accessible",
|
||||
"boolean", false,
|
||||
{
|
||||
setter: function (value) { getMarkupDocumentViewer().authorStyleDisabled = value; },
|
||||
getter: function () { return getMarkupDocumentViewer().authorStyleDisabled; },
|
||||
setter: function (value)
|
||||
{
|
||||
try
|
||||
{
|
||||
getMarkupDocumentViewer().authorStyleDisabled = value;
|
||||
}
|
||||
catch (e) { }
|
||||
},
|
||||
getter: function ()
|
||||
{
|
||||
try
|
||||
{
|
||||
return getMarkupDocumentViewer().authorStyleDisabled;
|
||||
}
|
||||
catch (e) { }
|
||||
}
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
@@ -1338,7 +1338,9 @@ liberator.Events = function () //{{{
|
||||
liberator.commandline.onEvent(event); // reroute event in command line mode
|
||||
}
|
||||
else if (liberator.mode != liberator.modes.INSERT && liberator.mode != liberator.modes.TEXTAREA)
|
||||
{
|
||||
liberator.beep();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -94,11 +94,11 @@ liberator.config = {
|
||||
|
||||
init: function ()
|
||||
{
|
||||
liberator.mappings.add([liberator.modes.NORMAL],
|
||||
/*liberator.mappings.add([liberator.modes.NORMAL],
|
||||
["o"], "Open a message",
|
||||
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });
|
||||
function () { liberator.commandline.open(":", "open ", liberator.modes.EX); });*/
|
||||
|
||||
// TODO: move elsewhere
|
||||
// TODO: move elsewhere, probably compose.js
|
||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||
["e"], "Edit message",
|
||||
function () { liberator.editor.editWithExternalEditor(); });
|
||||
@@ -111,6 +111,19 @@ liberator.config = {
|
||||
["Y"], "Send message later",
|
||||
function () { goDoCommand("cmd_sendLater"); });
|
||||
|
||||
// FIXME: does not really work reliably
|
||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||
["t"], "Select To: field",
|
||||
function () { awSetFocus(0, awGetInputElement(1)); });
|
||||
|
||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||
["s"], "Select Subject: field",
|
||||
function () { GetMsgSubjectElement().focus(); });
|
||||
|
||||
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||
["i"], "Select message body",
|
||||
function () { SetMsgBodyFrameFocus(); });
|
||||
|
||||
// don't wait too long when selecting new messages
|
||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||
this.isComposeWindow = window.wintype == "msgcompose";
|
||||
|
||||
Reference in New Issue
Block a user