diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-03-24 19:20:29 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-03-24 19:28:46 +1100 |
| commit | b531bab1cef58fcebc6c786bd63d6217a135204d (patch) | |
| tree | 7c68e57fd6bdeaf487a119147befb7ac40daf2db /test/shell | |
| parent | 045efdc49ed39f90d4a0be56b3a9e4896533e7e2 (diff) | |
Add support for -shell-script-* completion in :prompt
Fixes #2754
Diffstat (limited to 'test/shell')
| -rw-r--r-- | test/shell/prompt-shell-script-candidates/cmd | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-candidates/in | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-candidates/out | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-candidates/rc | 3 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-completion/cmd | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-completion/in | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-completion/out | 1 | ||||
| -rw-r--r-- | test/shell/prompt-shell-script-completion/rc | 3 |
8 files changed, 12 insertions, 0 deletions
diff --git a/test/shell/prompt-shell-script-candidates/cmd b/test/shell/prompt-shell-script-candidates/cmd new file mode 100644 index 00000000..7cc38390 --- /dev/null +++ b/test/shell/prompt-shell-script-candidates/cmd @@ -0,0 +1 @@ +:foo<ret>b<tab><tab><ret> diff --git a/test/shell/prompt-shell-script-candidates/in b/test/shell/prompt-shell-script-candidates/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/shell/prompt-shell-script-candidates/in @@ -0,0 +1 @@ + diff --git a/test/shell/prompt-shell-script-candidates/out b/test/shell/prompt-shell-script-candidates/out new file mode 100644 index 00000000..5716ca59 --- /dev/null +++ b/test/shell/prompt-shell-script-candidates/out @@ -0,0 +1 @@ +bar diff --git a/test/shell/prompt-shell-script-candidates/rc b/test/shell/prompt-shell-script-candidates/rc new file mode 100644 index 00000000..6aaaf259 --- /dev/null +++ b/test/shell/prompt-shell-script-candidates/rc @@ -0,0 +1,3 @@ +define-command foo %{ + prompt -shell-script-candidates %{ printf 'foo\nbar\nhaz\n' } ': ' %{exec i %val{text} <esc>} +} diff --git a/test/shell/prompt-shell-script-completion/cmd b/test/shell/prompt-shell-script-completion/cmd new file mode 100644 index 00000000..7cc38390 --- /dev/null +++ b/test/shell/prompt-shell-script-completion/cmd @@ -0,0 +1 @@ +:foo<ret>b<tab><tab><ret> diff --git a/test/shell/prompt-shell-script-completion/in b/test/shell/prompt-shell-script-completion/in new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/shell/prompt-shell-script-completion/in @@ -0,0 +1 @@ + diff --git a/test/shell/prompt-shell-script-completion/out b/test/shell/prompt-shell-script-completion/out new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/test/shell/prompt-shell-script-completion/out @@ -0,0 +1 @@ +foo diff --git a/test/shell/prompt-shell-script-completion/rc b/test/shell/prompt-shell-script-completion/rc new file mode 100644 index 00000000..3fd111ba --- /dev/null +++ b/test/shell/prompt-shell-script-completion/rc @@ -0,0 +1,3 @@ +define-command foo %{ + prompt -shell-script-completion %{ printf 'foo\nbar\nhaz\n' } ': ' %{exec i %val{text} <esc>} +} |
