* Some notes mostly

This commit is contained in:
Bryan Ashby 2015-07-10 15:24:30 -06:00
parent 1f409435f4
commit 2391ce6bc9
3 changed files with 10 additions and 7 deletions

View File

@ -55,13 +55,13 @@ function FullScreenEditorModule(options) {
// Header: mciData.body.height // Header: mciData.body.height
// Body : We must find this in the config / theme // Body : We must find this in the config / theme
// //
// :TODO: don't hard code this -- allow footer to be themed/etc. // :TODO: don't hard code this -- allow footer height to be part of theme/etc.
self.client.term.rawWrite(ansi.goto(23, 1)); self.client.term.rawWrite(ansi.goto(23, 1));
callback(null); callback(null);
}, },
function clearFooterArea(callback) { function clearFooterArea(callback) {
if(options.clear) { if(options.clear) {
self.client.term.rawWrite(ansi.deleteLine(3)); self.client.term.rawWrite(ansi.reset() + ansi.deleteLine(3));
} }
callback(null); callback(null);
}, },

View File

@ -575,7 +575,7 @@
"HM1" : { "HM1" : {
"mci" : { "mci" : {
"HM1" : { "HM1" : {
"items" : [ "Menu 1", "Menu 2", "Menu 3", "Menu 4" ] "items" : [ "Save", "Discard", "Menu 3", "Help" ]
} }
}, },
"submit" : { "submit" : {
@ -602,16 +602,19 @@
} }
] ]
}, },
//
// :TODO: concept to replace "submit" per view
// existing submit would remain only as boolean
// ...need general way to override keys for a view -- submit, next, etc.
"actionKeys" : [ // :TODO: Need better name "actionKeys" : [ // :TODO: Need better name
{ {
"keys" : [ "escape" ], "keys" : [ "escape" ],
"action" : "@method:editModeEscPressed" "action" : "@method:editModeEscPressed"
} }
] ]
// :TODO: something like the following for overriding keymap
// this should only override specified entries. others will default
/*
"keyMap" : {
"accept" : [ "return" ]
}
*/
} }
} }
} }