mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:42:27 +01:00
[muttator] some new compose mappings
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,6 +1,8 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2008-06-xx:
|
2008-06-xx:
|
||||||
* version 1.2
|
* 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
|
* :bdelete accepts an optional argument now
|
||||||
* renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
|
* renamed some :autocmd, mainly BrowserStartup -> Startup and BrowserExit -> Quit
|
||||||
* don't pass any ctrl- or alt- prefixed keys to firefox in insert mode
|
* 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",
|
"Show current website with a minimal style sheet to make it easily accessible",
|
||||||
"boolean", false,
|
"boolean", false,
|
||||||
{
|
{
|
||||||
setter: function (value) { getMarkupDocumentViewer().authorStyleDisabled = value; },
|
setter: function (value)
|
||||||
getter: function () { return getMarkupDocumentViewer().authorStyleDisabled; },
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
getMarkupDocumentViewer().authorStyleDisabled = value;
|
||||||
|
}
|
||||||
|
catch (e) { }
|
||||||
|
},
|
||||||
|
getter: function ()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return getMarkupDocumentViewer().authorStyleDisabled;
|
||||||
|
}
|
||||||
|
catch (e) { }
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
|||||||
@@ -1338,9 +1338,11 @@ liberator.Events = function () //{{{
|
|||||||
liberator.commandline.onEvent(event); // reroute event in command line mode
|
liberator.commandline.onEvent(event); // reroute event in command line mode
|
||||||
}
|
}
|
||||||
else if (liberator.mode != liberator.modes.INSERT && liberator.mode != liberator.modes.TEXTAREA)
|
else if (liberator.mode != liberator.modes.INSERT && liberator.mode != liberator.modes.TEXTAREA)
|
||||||
|
{
|
||||||
liberator.beep();
|
liberator.beep();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (stop)
|
if (stop)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -94,11 +94,11 @@ liberator.config = {
|
|||||||
|
|
||||||
init: function ()
|
init: function ()
|
||||||
{
|
{
|
||||||
liberator.mappings.add([liberator.modes.NORMAL],
|
/*liberator.mappings.add([liberator.modes.NORMAL],
|
||||||
["o"], "Open a message",
|
["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],
|
liberator.mappings.add([liberator.modes.COMPOSE],
|
||||||
["e"], "Edit message",
|
["e"], "Edit message",
|
||||||
function () { liberator.editor.editWithExternalEditor(); });
|
function () { liberator.editor.editWithExternalEditor(); });
|
||||||
@@ -111,6 +111,19 @@ liberator.config = {
|
|||||||
["Y"], "Send message later",
|
["Y"], "Send message later",
|
||||||
function () { goDoCommand("cmd_sendLater"); });
|
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
|
// don't wait too long when selecting new messages
|
||||||
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
// GetThreadTree()._selectDelay = 300; // TODO: make configurable
|
||||||
this.isComposeWindow = window.wintype == "msgcompose";
|
this.isComposeWindow = window.wintype == "msgcompose";
|
||||||
|
|||||||
Reference in New Issue
Block a user