Commit Graph

385 Commits

Author SHA1 Message Date
c-bata dc6fb6e5d8 Write godoc for ConsoleWriter and ConsoleParser 2018-02-14 12:40:37 +09:00
c-bata 742d5c0b78 Update CHANGELOG 2018-02-14 12:00:01 +09:00
c-bata 12250c6c07 Fix some lint errors 2018-02-14 01:14:22 +09:00
c-bata bd11e00806 Update some options for pagination 2018-02-13 23:50:24 +09:00
c-bata 710a2b89af Add change log for v0.2.0 2018-02-13 23:43:51 +09:00
c-bata 60d120f7b3 Run goimports 2018-02-13 23:42:52 +09:00
Masashi SHIBATA 01c0f0a767
Merge pull request #36 from c-bata/orisano/fix_formatted_panic
fix: fix panic when len(formatted) == 0
2018-02-13 23:39:31 +09:00
Nao YONASHIRO 4581909538 fix: fix panic when len(formatted) == 0 2018-02-13 23:34:00 +09:00
Nao YONASHIRO 5f0f837e16 feat: linewrap support (#35)
* feat: linewrap support

* feat: support Terminal.app

* fix: fix corner case of renderCompletion

* refactor: remove verbose method

* refactor: inlining to stringWidth
2018-02-13 23:09:27 +09:00
c-bata a34adaee8d Add comment of the case TIOCGWINSZ returns 0,0 2018-02-13 22:03:18 +09:00
Masashi SHIBATA 5212a86596
Merge pull request #32 from bcicen/skip-erase-on-nil-height
skip line erasing on render when window size is not yet available
2018-02-13 22:01:18 +09:00
Masashi SHIBATA 79dd0f2831
Change filepath for debug log for supporting multiple platfroms (#33) 2018-02-13 00:04:49 +09:00
Bradley Cicenas 5f82ed8527 skip line erasing on render when window size is not yet available 2018-02-12 09:23:00 -05: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
Masashi SHIBATA dda4d96c46
Merge pull request #31 from c-bata/windows
Windows support.
2018-02-12 19:37:40 +09:00
c-bata 661e5e0c0b Add some refactor changes 2018-02-12 19:36:21 +09:00
Yusuke Nakamura 04883edce4 Add hundling to stopHandleSignalCh 2018-02-12 19:20:57 +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 2d3927aa20 remove Sleep 2018-02-12 19:20:57 +09:00
Yasuhiro Matsumoto df1341fe00 windows support 2018-02-12 19:20:57 +09:00
Masashi SHIBATA 9ec1dc9dc5
Merge pull request #28 from orisano/feat_pagination
feat: implement pagination
2018-02-12 19:18:59 +09:00
Nao YONASHIRO 63f3b83828 docs: add comments about a width of the scrollbar 2018-02-12 18:53:15 +09:00
Nao YONASHIRO d3c627faf4 fix: add scrollbar width 2018-02-12 18:50:42 +09:00
c-bata 549fe998dc Fix CursorUp and CursorDown 2018-02-12 18:36:39 +09:00
Nao YONASHIRO 63302a5036 feat: implement pagination 2018-02-12 17:40:47 +09:00
c-bata 95fb1dd6f4 Add evans: gRPC client 2018-02-04 12:52:19 +09:00
c-bata 6f833d4a9e Refactor window_size tools 2018-02-03 01:16:25 +09:00
c-bata 3fa18f2545 Refactor tests for history 2017-10-11 12:01:40 +09:00
Masashi SHIBATA c292a2f4b4 Fix history and add tests 2017-10-10 23:58:20 +09:00
Masashi SHIBATA eca845d01e Add cch123/asm-cli as a project using go-prompt 2017-10-10 02:41:59 +09:00
Masashi SHIBATA 7d45f72ee2 Add kubicorn which uses go-prompt 2017-10-10 02:17:14 +09:00
Masashi SHIBATA 422cf86720 Add command to check the race condition 2017-10-08 20:58:09 +09:00
Masashi SHIBATA faffcdaa35 Merge pull request #15 from brettbuddin/read-buffer-race
Fix data race in buffer read
2017-10-08 20:53:20 +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
Masashi SHIBATA 9f21b09785 Add a rancher/cli project which uses go-prompt 2017-09-27 09:29:31 +09:00
Masashi SHIBATA b25866c42a Merge pull request #13 from Allajah/fix-grammar
Fix grammar mistakes and typos in DEVELOPER_GUIDE
2017-09-20 10:33:57 +09:00
Allajah a885a4372a Fix grammar and typo in DEVELOPER_GUIDE 2017-09-20 01:33:31 +09:00
Masashi SHIBATA 76a3a211c3 Fix End and Home key mapping 2017-09-17 18:39:29 +09:00
Masashi SHIBATA 43889dc4a6 Fix some key mappings 2017-09-17 18:22:54 +09:00
c-bata b825471eb8 Fix the cursor position when given accent letters 2017-09-06 03:21:08 +09:00
c-bata ba23322956 Update example 2017-08-22 18:22:55 +09: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 a8daf831aa Update my profile 2017-08-18 09:55:22 +09:00
c-bata ccab29926d Fix Input and Choose 2017-08-18 02:12:13 +09:00
c-bata 6905a01295 Add a comment to some exported functions 2017-08-18 01:40:41 +09:00
c-bata 6b76ff545b Update README 2017-08-18 01:19:21 +09:00
c-bata 5d40e85a6c Add CHANGELOG 2017-08-18 01:17:27 +09:00
Masashi SHIBATA e48f0d7d00 Merge pull request #7 from b4b4r07/ctrl-l
Clear the screen like Ctrl-l behavior
2017-08-18 01:00:09 +09:00
c-bata 806a649935 Update README 2017-08-18 00:31:15 +09:00