Remi Reuvekamp
c914be64f0
Fix panic: runtime error: slice bounds out of range ( #94 )
...
Reslicing line[10:] went wrong if only 'setprompt' was entered, without a space after.
2016-11-06 12:23:43 +08:00
chzyer
94eaec69a7
add HistorySearchFold ( #86 )
...
* add HistorySearchFold
* [history] fix test
2016-10-03 14:51:04 +08:00
Jiří Setnička
cffdf641d1
Dynamic autocompletion ( #60 )
...
* Dynamic autocompletion implemented
Now there is a new item type "PcItemDynamic" which takes function as
parameter.
When it comes to autocomplete at this position, the function is called,
the whole line is given to it (for example if autocompletion depend on
previous autocompleted field) and functio should return possible strings
how to continue.
Example usage:
* listing some dynamic key-value storage
* listing files in directory
* Dynamic autocompletion: Updated example
* Dynamic autocompletion: Internal Do() is passing the original full line
To serve it to dynamic autocompletion functions. Previously passed line
was only following segment (which doesn't work).
* Dynamic autocompletion: New dynamic interface added + type assertion in Do function
Do function was split into doInternal with changed declaration and Do
with original declaration.
2016-07-26 21:39:09 +08:00
chzyer
1e0917c739
fix typo
2016-04-21 10:06:19 +08:00
chzyer
5652dc7c25
[readline-im] add readme
2016-03-31 11:08:58 +08:00
chzyer
218eb7fff6
[example] Add a IM example
2016-03-31 10:55:53 +08:00
chzyer
1e409caaf3
return remain line if interrupt.
2016-03-25 17:08:13 +08:00
chzyer
b57eccfd02
add remote mode
2016-03-13 18:32:48 +08:00
Cheney
07485bbd8f
update history interfaces. and support DisableAutoSaveHistory
2016-02-16 16:56:57 +08:00
Cheney
1a0e228994
example: rename demos
2015-11-21 11:36:09 +08:00
Chris P
ccd7589339
example: add pass_strength/pass_strength.go (WTFPL licensed)
2015-11-20 16:27:55 +01:00
Cheney
c1adc97620
example: improve usage content
2015-11-20 21:32:53 +08:00
Cheney
839c0013a8
example: update
2015-11-20 21:00:05 +08:00
Cheney
71e9536f4b
add password support
2015-11-20 20:56:42 +08:00
Cheney
4dffd60960
example: improve InterruptPrompt
2015-11-20 11:33:10 +08:00
Cheney
5660cc8cb6
example: change (Ctrl+C), (Ctrl+D) to shell-like
2015-11-20 11:26:58 +08:00
Cheney
9364259fb1
#15 : fix prefix completer
2015-11-14 10:21:55 +08:00
Cheney
5ee706df9b
only enter raw mode when calling Readline()
2015-11-09 11:20:26 +08:00
Cheney
50197e309d
move demo gif to branch/assets
2015-10-09 11:26:59 +08:00
Cheney
879224ddc9
refactor
2015-10-02 10:37:21 +08:00
Cheney
79d1bf27b4
add simple vim mode
2015-10-01 22:44:43 +08:00
Cheney
3ccecf626d
add readpassword
2015-09-30 14:16:46 +08:00
Cheney
180b650b65
add windows demo
2015-09-29 23:57:14 +08:00
Cheney
7537bea372
add set prompt
2015-09-27 18:54:26 +08:00
Cheney
75bbfa6d42
update demo
2015-09-26 01:01:20 +08:00
Cheney
d07044cdb6
add prefix completer
2015-09-26 00:31:09 +08:00
Cheney
04f86e9c53
add auto complete
2015-09-25 22:56:00 +08:00
Cheney
69871d9ae0
update readme
2015-09-25 12:59:36 +08:00
Cheney
f179b24304
support double-width-char & colorful prompt
2015-09-25 12:45:39 +08:00
Cheney
a659448259
update example
2015-09-23 14:52:45 +08:00
Cheney
3f23122fec
support save history item
2015-09-22 18:16:24 +08:00
Cheney
9c65cb7ccf
fix runebuffer refresh
2015-09-21 22:27:40 +08:00
Cheney
c16e43d258
refactor
2015-09-21 13:30:10 +08:00
Cheney
740e90a464
init commit
2015-09-20 23:14:29 +08:00