aboutsummaryrefslogtreecommitdiff
path: root/src/console/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 19:08:51 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-08 19:58:36 +0900
commit7ac00fce6f6c431f96c531179c6af3796df7e07a (patch)
treea10db125bd25c1447bb08de2ef156c010243f019 /src/console/actions
parentb0d2b5328107a9a2018132938fb5a9efcd77fc50 (diff)
Show info on yanked
Diffstat (limited to 'src/console/actions')
-rw-r--r--src/console/actions/console.js9
-rw-r--r--src/console/actions/index.js3
2 files changed, 10 insertions, 2 deletions
diff --git a/src/console/actions/console.js b/src/console/actions/console.js
index aacc21a..0d891bb 100644
--- a/src/console/actions/console.js
+++ b/src/console/actions/console.js
@@ -14,6 +14,13 @@ const showError = (text) => {
};
};
+const showInfo = (text) => {
+ return {
+ type: actions.CONSOLE_SHOW_INFO,
+ text: text
+ };
+};
+
const hideCommand = () => {
return {
type: actions.CONSOLE_HIDE_COMMAND,
@@ -40,6 +47,6 @@ const completionPrev = () => {
};
export {
- showCommand, showError, hideCommand,
+ showCommand, showError, showInfo, hideCommand,
setCompletions, completionNext, completionPrev
};
diff --git a/src/console/actions/index.js b/src/console/actions/index.js
index 3a6cf07..c4f88cd 100644
--- a/src/console/actions/index.js
+++ b/src/console/actions/index.js
@@ -1,9 +1,10 @@
export default {
// console commands
CONSOLE_SHOW_COMMAND: 'console.show.command',
- CONSOLE_SET_COMPLETIONS: 'console.set.completions',
CONSOLE_SHOW_ERROR: 'console.show.error',
+ CONSOLE_SHOW_INFO: 'console.show.info',
CONSOLE_HIDE_COMMAND: 'console.hide.command',
+ CONSOLE_SET_COMPLETIONS: 'console.set.completions',
CONSOLE_COMPLETION_NEXT: 'console.completion.next',
CONSOLE_COMPLETION_PREV: 'console.completion.prev',
};