forked from c-bata/go-prompt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
156 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
test/integration/prompt/pipelines/completion_revsearch.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
- cmd: [a] | ||
pane: | | ||
prompt_app> a | ||
abc | ||
aad | ||
aba | ||
aart | ||
apple | ||
- cmd: [b] | ||
pane: | | ||
prompt_app> ab | ||
abc | ||
aba | ||
- cmd: [Tab, Tab] | ||
pane: | | ||
prompt_app> aba | ||
abc | ||
aba | ||
- cmd: [Enter] | ||
pane: | | ||
prompt_app> aba | ||
cmd: aba | ||
prompt_app> | ||
- cmd: [C-r, q] | ||
pane: | | ||
prompt_app> aba | ||
cmd: aba | ||
(failed reverse-i-search)`q': | ||
- cmd: [Left, C-l] | ||
pane: | | ||
prompt_app> | ||
- cmd: [C-r, a] | ||
pane: | | ||
(reverse-i-search)`a':aba | ||
- cmd: [Enter] | ||
pane: | | ||
prompt_app> aba | ||
cmd: aba | ||
prompt_app> | ||
- cmd: ["if some then\nprint(один)", Enter] | ||
|
||
- cmd: ["if some then\nprint(три)\nelse\nprint(четыре)", Enter, C-l] | ||
pane: | | ||
prompt_app> | ||
- cmd: [C-r, pri] | ||
pane: | | ||
(reverse-i-search)`pri':if some then | ||
print(три) | ||
else | ||
print(четыре) | ||
- cmd: [C-r] | ||
pane: | | ||
(reverse-i-search)`pri':if some then | ||
print(один) | ||
- cmd: [Enter] | ||
pane: | | ||
prompt_app> if some then | ||
print(один) | ||
cmd: if some then | ||
print(один) | ||
prompt_app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
- cmd: | | ||
hello | ||
world | ||
а также | ||
мир! | ||
pane: | | ||
prompt_app> hello | ||
world | ||
а также | ||
мир! | ||
- cmd: [C-w] | ||
pane: | | ||
prompt_app> hello | ||
world | ||
а также | ||
cursor: [4, 3] | ||
|
||
- cmd: [M-b, M-b, C-k] | ||
pane: | | ||
prompt_app> hello | ||
world | ||
- cmd: | | ||
дополнительные | ||
много | ||
строчек, да! | ||
- cmd: [M-b, C-u] | ||
pane: | | ||
prompt_app> да! | ||
- cmd: [C-d, C-d] | ||
pane: | | ||
prompt_app> ! | ||
- cmd: | | ||
снова | ||
много строчек | ||
а б в г д е | ||
- cmd: [C-w, C-w, C-w, C-w, C-w] | ||
pane: | | ||
prompt_app> снова | ||
много строчек | ||
а ! | ||
- cmd: [C-k, C-w, C-w, C-w, C-w, C-w, C-w, C-w, C-w] # too many | ||
pane: | | ||
prompt_app> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters