mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-01 21:24:45 +02:00
Scroll to bottom of console after inputting command
This commit is contained in:
parent
528f1b0430
commit
89d85541ef
@ -524,6 +524,8 @@ class AppGui {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.stdout(error.message);
|
this.stdout(error.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.widget('console').scrollBottom();
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateFolderList() {
|
async updateFolderList() {
|
||||||
|
@ -56,6 +56,7 @@ class Command extends BaseCommand {
|
|||||||
this.stdout(commandNames.join(', '));
|
this.stdout(commandNames.join(', '));
|
||||||
this.stdout('');
|
this.stdout('');
|
||||||
this.stdout(_('To move from one widget to another, press Tab or Shift+Tab.'));
|
this.stdout(_('To move from one widget to another, press Tab or Shift+Tab.'));
|
||||||
|
this.stdout(_('Use the arrows and page up/down to scroll the lists and text areas (including this console).'));
|
||||||
this.stdout(_('To maximise/minimise the console, press "C".'));
|
this.stdout(_('To maximise/minimise the console, press "C".'));
|
||||||
this.stdout(_('To enter command line mode, press ":"'));
|
this.stdout(_('To enter command line mode, press ":"'));
|
||||||
this.stdout(_('To exit command line mode, press ESCAPE'));
|
this.stdout(_('To exit command line mode, press ESCAPE'));
|
||||||
|
@ -116,8 +116,10 @@ class StatusBarWidget extends BaseWidget {
|
|||||||
if (input === undefined) {
|
if (input === undefined) {
|
||||||
// User cancel
|
// User cancel
|
||||||
} else {
|
} else {
|
||||||
resolveResult = input;
|
resolveResult = input ? input.trim() : input;
|
||||||
if (input && input.trim() != '') this.history_.push(input);
|
// Add the command to history but only if it's longer than one character.
|
||||||
|
// Below that it's usually an answer like "y"/"n", etc.
|
||||||
|
if (input && input.length > 1) this.history_.push(input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ function renderCommandHelp(cmd, width = null) {
|
|||||||
|
|
||||||
if (defaultString !== null) desc.push(_('Default: %s', defaultString));
|
if (defaultString !== null) desc.push(_('Default: %s', defaultString));
|
||||||
|
|
||||||
return [md.key, desc.join('\n')];
|
return [md.key, desc.join("\n")];
|
||||||
};
|
};
|
||||||
|
|
||||||
output.push('');
|
output.push('');
|
||||||
|
@ -253,6 +253,11 @@ msgstr ""
|
|||||||
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Use the arrows and page up/down to scroll the lists and text area (including "
|
||||||
|
"the console)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "To maximise/minimise the console, press \"C\"."
|
msgid "To maximise/minimise the console, press \"C\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -280,6 +280,11 @@ msgstr ""
|
|||||||
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Use the arrows and page up/down to scroll the lists and text area (including "
|
||||||
|
"the console)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "To maximise/minimise the console, press \"C\"."
|
msgid "To maximise/minimise the console, press \"C\"."
|
||||||
msgstr "Quitter le logiciel."
|
msgstr "Quitter le logiciel."
|
||||||
|
@ -253,6 +253,11 @@ msgstr ""
|
|||||||
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
msgid "To move from one widget to another, press Tab or Shift+Tab."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Use the arrows and page up/down to scroll the lists and text area (including "
|
||||||
|
"the console)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "To maximise/minimise the console, press \"C\"."
|
msgid "To maximise/minimise the console, press \"C\"."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -212,7 +212,6 @@ class Setting extends BaseModel {
|
|||||||
|
|
||||||
static enumOptionsDoc(key, templateString = null) {
|
static enumOptionsDoc(key, templateString = null) {
|
||||||
if (templateString === null) templateString = '%s: %s';
|
if (templateString === null) templateString = '%s: %s';
|
||||||
console.info(templateString);
|
|
||||||
const options = this.enumOptions(key);
|
const options = this.enumOptions(key);
|
||||||
let output = [];
|
let output = [];
|
||||||
for (let n in options) {
|
for (let n in options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user