Commit Graph

347 Commits

Author SHA1 Message Date
Masashi SHIBATA
c4c9e8bd65
Merge pull request #150 from gohumble/master
Attach last key stroke to document
2020-02-20 17:54:45 +09:00
Masashi SHIBATA
b662637d18
Merge pull request #141 from VonC/arrow
Down Arrow for first completion
2020-02-20 16:53:46 +09:00
VonC
b6bf267a4e Put completionOnDown option in handleCompletionKeyBinding 2020-02-20 08:36:07 +01:00
c-bata
3a148d1647 Add gh-prompt: An interactive GitHub CLI featuring auto-complete 2020-02-13 20:46:36 +09:00
c-bata
0f36fac459 Add mstrYoda/docker-shell as a project using go-prompt 2020-01-26 20:49:49 +09:00
Deniz Cakan
1002d440a3 attach last key stroke to document 2019-12-22 21:18:48 +01:00
c-bata
97fbae615b Add fishi0x01/vsh in the project using go-prompt 2019-11-30 16:05:24 +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
VonC
df850582f4 add down arrow completion 2019-08-26 18:14:05 +02:00
Masashi SHIBATA
0f95e1d1de
Merge pull request #140 from odino/master
Added OptionBreakLineCallback, to run a callback every time there's a line break
2019-08-26 22:48:12 +09: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
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