From 7ab61ac64128c5c6e2ef0907a72bd1a8b23ce47f Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Mon, 4 Jul 2016 12:56:54 -0600 Subject: [PATCH] * TODO notes * Add final prep to default to "No" -- this should be menu.hjson controled in the future --- mods/onelinerz.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mods/onelinerz.js b/mods/onelinerz.js index 80bd301e..6244e968 100644 --- a/mods/onelinerz.js +++ b/mods/onelinerz.js @@ -14,6 +14,15 @@ const async = require('async'); const _ = require('lodash'); const moment = require('moment'); +/* + Module :TODO: + * Add pipe code support + - override max length & monitor *display* len as user types in order to allow for actual display len with color + * Add preview control: Shows preview with pipe codes resolved + * Add ability to at least alternate formatStrings -- every other +*/ + + exports.moduleInfo = { name : 'Onelinerz', desc : 'Standard local onelinerz', @@ -147,6 +156,11 @@ function OnelinerzModule(options) { entriesView.focusItems = entriesView.items; // :TODO: this is a hack entriesView.redraw(); + return callback(null); + }, + function finalPrep(callback) { + const promptView = self.viewControllers.view.getView(MciCodeIds.ViewForm.AddPrompt); + promptView.setFocusItemIndex(1); // default to NO return callback(null); } ],