diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-11 11:18:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 11:18:01 +0000 |
commit | 0630c8f56664ac48f4cf8799dc1d88a6388957a6 (patch) | |
tree | d9160c76f4c3435b0859669f1254b12eb92d183f /src/console/actions/console.js | |
parent | 86b534b1e1de03d51efb9f28cd32296d037f07fc (diff) | |
parent | fe8a9283172e43e29480c4293c34565859c04c32 (diff) |
Merge pull request #142 from ueokande/find-mode
[WIP] Find mode
Diffstat (limited to 'src/console/actions/console.js')
-rw-r--r-- | src/console/actions/console.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/console/actions/console.js b/src/console/actions/console.js index 0d891bb..2cf8e8d 100644 --- a/src/console/actions/console.js +++ b/src/console/actions/console.js @@ -7,6 +7,12 @@ const showCommand = (text) => { }; }; +const showFind = () => { + return { + type: actions.CONSOLE_SHOW_FIND, + }; +}; + const showError = (text) => { return { type: actions.CONSOLE_SHOW_ERROR, @@ -27,10 +33,18 @@ const hideCommand = () => { }; }; -const setCompletions = (completions) => { +const setConsoleText = (consoleText) => { + return { + type: actions.CONSOLE_SET_CONSOLE_TEXT, + consoleText, + }; +}; + +const setCompletions = (completionSource, completions) => { return { type: actions.CONSOLE_SET_COMPLETIONS, - completions: completions + completionSource, + completions, }; }; @@ -47,6 +61,6 @@ const completionPrev = () => { }; export { - showCommand, showError, showInfo, hideCommand, + showCommand, showFind, showError, showInfo, hideCommand, setConsoleText, setCompletions, completionNext, completionPrev }; |