Masashi SHIBATA
768273a734
Merge pull request #158 from UiP9AV6Y/feature-initial-text
...
add support for managing the initial buffer content.
2020-02-28 12:19:16 +09:00
Gordon Bleux
715666277d
add support for managing the initial buffer content.
...
the option will modify the buffer content upon startup and works
in combination with `OptionShowCompletionAtStart()`.
2020-02-27 19:01:43 +01:00
VonC
0d097872c2
ExitChecker: Exit go-prompt Run() for loop ( #161 )
2020-02-22 00:30:47 +09:00
VonC
afba691149
Fix comment (lint)
2019-08-27 08:00:09 +02:00
VonC
49fa645ffe
Add completionOnDown option
2019-08-26 18:25:26 +02:00
odino
c7735f732d
make BreaklineCallback private (`breaklineCallback`)
2019-08-26 17:41:23 +04:00
odino
dbd5467376
Added document as an argument to the LineBreakCallback
2019-08-16 14:37:33 +04:00
odino
ea717205ca
Added OptionBreakLineCallback, to run a callback every time there's a line break
...
It's useful to run a function everytime there's a line break -- Enter as well as, for example, ControlC.
With this PR, a new option is added to assign a callback that gets
called every time `renderer.BreakLine()` is called.
Added a test that makes sure the renderer doesn't break if the callback is
not specified, as well as to check that it runs ok when the callback executes.
Just to give a bit more of context: in [ABS](https://github.com/abs-lang/abs )
we are trying to implement ControlR (reverse search), and need to clear
the search selection every time the user "clears" the console, either by
pressing enter or by clearing the current line (eg. ControlC).
2019-08-16 04:30:44 +04:00
rhysd
c7e4448406
Add OptionShowCompletionAtStart option
2018-10-23 19:54:01 +09:00
Masashi SHIBATA
1e50403714
Add NewStderrWriter ( #102 )
...
* Add NewStderrWriter
2018-10-23 12:13:07 +09:00
c-bata
2218107f1f
Fix golint
2018-10-20 13:49:52 +09:00
c-bata
433f2c9b36
Fix a bug when using OptionWriter
2018-10-20 13:14:56 +09:00
Masashi SHIBATA
c52492ff1b
Update CHANGELOG for v0.2.2 release. ( #84 )
2018-06-28 22:06:28 +09:00
c-bata
d3ef529afd
Add option to customize insertion points for completions
2018-06-24 04:30:07 +09:00
Chyroc
6a9503cb3a
add ascii-code-bind-option-and-find-current-word-end
2018-04-11 20:14:38 +08:00
c-bata
4dbd0dc8ff
Fix typo
2018-02-18 18:18:42 +09:00
c-bata
19a0980a21
Add godoc comments
2018-02-15 17:34:37 +09:00
c-bata
bd11e00806
Update some options for pagination
2018-02-13 23:50:24 +09:00
Allajah
e15ebadefe
Support updating the prefix dynamiacally ( #30 )
...
* Make possible to change the prefix dynamically
* Add an example for using live-prefix
* Apply live-prefix if it's enabled
* Fix: rendering issue happened when the prefix is empty string Close #27
* Fix the title of propmt
* Remove an excessive blank line
* Refactor: Call `*Render.getCurrentPrefix()` in renderPrefix()
2018-02-12 20:00:48 +09:00
c-bata
661e5e0c0b
Add some refactor changes
2018-02-12 19:36:21 +09:00
Yasuhiro Matsumoto
df1341fe00
windows support
2018-02-12 19:20:57 +09:00
Nao YONASHIRO
63302a5036
feat: implement pagination
2018-02-12 17:40:47 +09:00
c-bata
6905a01295
Add a comment to some exported functions
2017-08-18 01:40:41 +09:00
c-bata
691d64f6f1
Add OptionKeyBindMode
2017-08-13 13:42:40 +09:00
c-bata
62d47c3acf
Refactor keybindings
2017-08-13 13:09:45 +09:00
c-bata
3e90ac1b91
Refactor variable names
2017-08-12 18:59:10 +09:00
c-bata
e871f177ec
Refactor completions
2017-08-09 21:33:47 +09:00
c-bata
01c461e472
Add some refactor changes
2017-08-09 12:50:07 +09:00
c-bata
b53127c970
Rename package
2017-08-08 00:19:51 +09:00
c-bata
ad17465489
Remove output options
2017-08-06 15:31:44 +09:00
c-bata
654143f525
Fix history and Refactor completion
2017-08-04 20:28:32 +09:00
c-bata
3002a7e8af
Implement History
2017-08-04 19:16:39 +09:00
c-bata
8aeed013a4
Add refactor change
2017-08-04 16:23:18 +09:00
c-bata
2e1d7d8eb0
Complete with description
2017-07-19 00:36:16 +09:00
c-bata
050e78b823
Move go files to project root
2017-07-18 05:27:57 +09:00