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
c-bata
2492e11b98
Separate issue template
2019-07-31 22:13:43 +09:00
c-bata
6badcefd40
Remove OpenCollective links from README
2019-07-28 16:38:42 +09:00
c-bata
6b41a41821
Add kafka-prompt as a project using go-prompt
2019-07-08 21:22:29 +09:00
Masashi SHIBATA
6403a13bba
Merge pull request #135 from dgarana/fix/exit_command_http_prompt
...
Fix http-prompt example (no exit)
2019-06-29 13:47:24 +09:00
David Garaña
25ab56b982
Fix http-prompt example (no exit)
...
Implement the exit function on the http-prompt example.
2019-06-28 12:28:00 +02:00
Masashi SHIBATA
723478af40
Merge pull request #131 from andy-js/master
...
syscall.SYS_IOCTL is not portable
2019-06-09 13:07:04 +09:00
c-bata
e697e0224d
Add takashabe/btcli as a project using go-prompt
2019-05-22 11:31:43 +09:00
c-bata
ea60356011
Add abs-lang/abs as a project using go-prompt
2019-05-21 20:56:22 +09:00
Andrew Stormont
c53d9fe30b
syscall.SYS_IOCTL is not portable
2019-04-10 15:14:54 +01:00
c-bata
c8c75cc295
Add last-ent/testy-go as a project using go-prompt
2019-03-30 16:15:26 +09:00
c-bata
eeb71f604c
Add tiagorlampert/CHAOS as a project using go-prompt
2019-03-29 23:27:23 +09:00
Masashi SHIBATA
df16feb8c1
Merge pull request #126 from c-bata/travis-cache
...
Cache go mod files
2019-02-23 17:08:47 +09:00
c-bata
4ce2eb8149
Cache go mod
2019-02-23 16:55:44 +09:00
Masashi SHIBATA
d7c2a701c2
Merge pull request #125 from c-bata/go-modules
...
Migrate to go modules
2019-02-23 04:14:46 +09:00
c-bata
3e168070f1
Cache go env GOCACHE
2019-02-23 04:06:37 +09:00
c-bata
777e807ded
Run go mod tidy
2019-02-23 03:28:20 +09:00
c-bata
0a8f4fb285
Migrate to go modules
2019-02-23 03:25:51 +09:00
c-bata
f9c45ac43c
Fix logger of completer/file.go
2019-02-07 12:21:20 +09:00
Masashi SHIBATA
422a0f0d6a
Merge pull request #120 from c-bata/refactor-input-parser
...
Refactor input parser
2018-12-18 03:42:33 +09:00
c-bata
e231f2940f
Refactor input parser
2018-12-18 03:13:07 +09:00
Masashi SHIBATA
e818e3c1e6
Merge pull request #117 from c-bata/use-go-generate
...
Use go generate
2018-12-14 23:11:58 +09:00
Masashi SHIBATA
2b7e2f0282
Merge pull request #118 from c-bata/add-assert-no-error
...
Add debug.AssertNoError for simplify
2018-12-14 23:11:46 +09:00
c-bata
e7f71dae8a
Use go generate
2018-12-14 22:34:13 +09:00
c-bata
843933453f
Add debug.AssertNoError for simplify
2018-12-14 22:28:41 +09:00
Masashi SHIBATA
6d81ea6f26
Merge pull request #116 from c-bata/add-debug-logger
...
Add debug logger and assert
2018-12-10 04:43:45 +09:00
c-bata
acf27c314e
Add debug logger and assert
2018-12-10 04:16:49 +09:00
Masashi SHIBATA
735dd76ccc
Merge pull request #115 from c-bata/fix-golint
...
Fix golint and improbe travis.yml
2018-12-09 22:44:55 +09:00
c-bata
7348fd95e8
Fix golint error
2018-12-09 22:35:05 +09:00
Masashi SHIBATA
fe8fa91b20
Merge pull request #113 from c-bata/refactor-documents
...
Refactor a Document component
2018-12-09 21:17:49 +09:00
c-bata
80e24cac1c
Add examples for Document component
2018-12-09 21:05:15 +09:00
c-bata
6916c5f66d
Move some strings utilities to internal/strings
2018-12-09 21:04:57 +09:00
c-bata
24941a6503
Move bisectRight implementation to internal/bisect
2018-12-09 20:47:49 +09:00
Masashi SHIBATA
b47e013727
Update .travis.yml ( #114 )
...
* Update .travis.yml
* Add build.sh for examples
* Update goimports
* update travis.yml
2018-12-09 20:42:33 +09:00
c-bata
b6d2b439b9
Update README
2018-11-09 16:47:55 +09:00
Masashi SHIBATA
63e3a6f38a
Integrate with Travis CI ( #103 )
...
* Add .travis.yml
2018-10-25 22:59:47 +09:00
Masashi SHIBATA
4b35da6de1
Merge pull request #107 from c-bata/release-v0.2.3
...
Update CHANGELOG.md to release v0.2.3
2018-10-25 03:16:34 +09:00
c-bata
7c0b830671
Update change log to release v0.2.3
2018-10-25 03:15:32 +09:00
Masashi SHIBATA
e577a139d4
Merge pull request #100 from rhysd/show-completion-at-start
...
Add option to show completion at start on Prompt.Input()
2018-10-23 20:43:13 +09:00
rhysd
c7e4448406
Add OptionShowCompletionAtStart option
2018-10-23 19:54:01 +09:00
Masashi SHIBATA
407ba3c83c
Merge pull request #99 from rhysd/fix-test-on-darwin
...
Fix test on macOS
2018-10-23 19:37:55 +09:00
rhysd
3f4694d3d3
Add comment about test failure on iTerm2
2018-10-23 19:32:00 +09:00
Masashi SHIBATA
1e50403714
Add NewStderrWriter ( #102 )
...
* Add NewStderrWriter
2018-10-23 12:13:07 +09:00
c-bata
e03be11d07
Update README of examples and tools
2018-10-21 19:04:26 +09:00
Masashi SHIBATA
57a774d2c6
Add http-prompt example and add README for examples. ( #51 )
...
* Add http-prompt example
* Add README for examples
* Add live-prefix description
2018-10-20 22:46:18 +09:00
Masashi SHIBATA
f350bee28f
Merge pull request #106 from c-bata/fuzzy-filter
...
Add FilterFuzzy
2018-10-20 15:52:21 +09:00
c-bata
76ba1f0da4
Add refactor changes of fuzzy filter
2018-10-20 15:50:53 +09:00
Masashi SHIBATA
dfd47a63f6
Merge pull request #92 from kalafut/master
...
Add fuzzy match filter
2018-10-20 15:47:01 +09:00
Masashi SHIBATA
80d4fe1cd6
Merge pull request #104 from c-bata/fix-resetting-attributes
...
Fix resetting attributes
2018-10-20 14:31:31 +09:00