VonC
20fd13d133
Fix golint-cli -fast warnings
2020-02-24 14:13:36 +01:00
VonC
39d1a739c2
Trigger ExitChecker on pressed keys ( #162 )
...
* prompt.go handleKeyBinding can indicate one should Exit if an exit checker function is set
* Use new name exitChecker instead of old exitor
* ExitChecker API change: breakline bool
- breakline true means the executor has been called: check for exit
- breakline false means no executor, just a character typed: check for
exit
2020-02-22 13:16:28 +09:00
VonC
0d097872c2
ExitChecker: Exit go-prompt Run() for loop ( #161 )
2020-02-22 00:30:47 +09:00
Masashi SHIBATA
c4c9e8bd65
Merge pull request #150 from gohumble/master
...
Attach last key stroke to document
2020-02-20 17:54:45 +09:00
VonC
b6bf267a4e
Put completionOnDown option in handleCompletionKeyBinding
2020-02-20 08:36:07 +01:00
Deniz Cakan
1002d440a3
attach last key stroke to document
2019-12-22 21:18:48 +01:00
VonC
49fa645ffe
Add completionOnDown option
2019-08-26 18:25:26 +02:00
VonC
df850582f4
add down arrow completion
2019-08-26 18:14:05 +02:00
c-bata
e231f2940f
Refactor input parser
2018-12-18 03:13:07 +09:00
c-bata
843933453f
Add debug.AssertNoError for simplify
2018-12-14 22:28:41 +09:00
c-bata
acf27c314e
Add debug logger and assert
2018-12-10 04:16:49 +09:00
rhysd
c7e4448406
Add OptionShowCompletionAtStart option
2018-10-23 19:54:01 +09:00
c-bata
d3ef529afd
Add option to customize insertion points for completions
2018-06-24 04:30:07 +09:00
Masashi SHIBATA
ae619c5ea4
Merge pull request #65 from Chyroc/add-ascii-code-bind-option-and-find-current-word-end
...
Add ascii code bind option and find current word end
2018-06-08 23:57:47 +09:00
ktr0731
fd5f8304d0
Fix goroutine leaks
2018-05-13 19:34:13 +09:00
Chyroc
9a8da1fa51
add test
2018-04-11 20:55:49 +08:00
Chyroc
6a9503cb3a
add ascii-code-bind-option-and-find-current-word-end
2018-04-11 20:14:38 +08:00
c-bata
b884e90bc5
Remove ControlSpace handling
2018-02-19 23:41:34 +09:00
c-bata
f2ee1fd099
Separate handleCompletionKeyBinding
2018-02-19 23:34:45 +09:00
c-bata
134d46302a
Separate key binding
2018-02-19 23:32:20 +09:00
Nao YONASHIRO
c6186541a9
feat: improve rendering performance on windows ( #47 )
...
* feat: to ignore the codepoint 0
* feat: hide cursor whole rendering phase
* feat: change EraseDown timing
* feat: add sleep
* feat: to async Read on windows
* style: goimports
* refactor: use defer
* feat: remove ignore flush
* chore: remove ignore output
2018-02-18 22:27:59 +09:00
Masashi SHIBATA
79dd0f2831
Change filepath for debug log for supporting multiple platfroms ( #33 )
2018-02-13 00:04:49 +09:00
c-bata
661e5e0c0b
Add some refactor changes
2018-02-12 19:36:21 +09:00
Yusuke Nakamura
2c030818ad
Catch keycode 'ControlM'
...
In windows, send ControlM when press enter key.
2018-02-12 19:20:57 +09:00
Yasuhiro Matsumoto
df1341fe00
windows support
2018-02-12 19:20:57 +09:00
Brett Buddin
4a8c31c50e
Fixes #12 .
...
Makes a copy of the bytes we read from stdin and sends those to the
processing goroutine instead of a slice from our scratch buffer. This
avoids sharing the same underlying array data across goroutines.
2017-09-29 21:56:33 -04:00
c-bata
26a62ce99f
Stop handling signal when running executor
2017-08-22 00:52:03 +09:00
c-bata
f8cde79229
Add some doc comments
2017-08-22 00:47:15 +09:00
c-bata
bd6a548700
Run fmt
2017-08-15 01:50:04 +09:00
c-bata
81ee67c776
Alter the argument of completer to Document
2017-08-13 16:43:10 +09:00
c-bata
691d64f6f1
Add OptionKeyBindMode
2017-08-13 13:42:40 +09:00
c-bata
c98ec2f0d6
Refactor and fix completing operation
2017-08-13 13:18:56 +09:00
c-bata
62d47c3acf
Refactor keybindings
2017-08-13 13:09:45 +09:00
c-bata
aa686033e9
Add test and fix logger
2017-08-11 01:45:23 +09:00
c-bata
8b4da0058e
Add some keybind
2017-08-10 01:26:32 +09:00
c-bata
0194c52454
Add prompt.Input and prompt.Choose
2017-08-10 01:06:42 +09:00
c-bata
2921d1d259
Enter when exit
2017-08-09 22:47:08 +09:00
c-bata
e871f177ec
Refactor completions
2017-08-09 21:33:47 +09:00
c-bata
b578417898
Fix reset raw mode bug
2017-08-09 21:28:34 +09:00
c-bata
96ca27863f
Refactor set blocking
2017-08-09 16:20:31 +09:00
c-bata
6a6ddef913
Fix EAGAIN error
2017-08-09 14:04:10 +09:00
c-bata
01c461e472
Add some refactor changes
2017-08-09 12:50:07 +09:00
c-bata
17282c599f
Set nonblocking mode
2017-08-07 20:07:02 +09:00
c-bata
ad17465489
Remove output options
2017-08-06 15:31:44 +09:00
c-bata
44eda9ed4e
Replace panic to log.Print
2017-08-06 15:21:14 +09:00
c-bata
bdc32514f8
Rename Completion to Suggest
2017-08-04 20:30:50 +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
fbc5f10547
Cancel context with ControlC
2017-08-04 16:23:18 +09:00
c-bata
2eab51d9f7
Update prompt
2017-08-04 16:23:18 +09:00