Commit graph

118 commits

Author SHA1 Message Date
Daisuke Maki 00707e8727 Aaaarg, pt didn't find the last remaining reference to pdebug!
pt 2.2.0 used the line "peco" from .gitignore, and decided to
skip matching against the directory "cmd/peco". This made me
think that I changed all occurrances of github.com/lestrrat/go-pdebug
to github.com/lestrrat-go/pdebug, but apparently there was one
that was missing.
2018-10-25 15:59:57 +09:00
Daisuke Maki 1e14eea871 make sure to use WithCancel (and be pedantic) 2017-03-15 09:01:01 +09:00
Daisuke Maki a78051dcbe Properly suspend termbox before executing external command
This makes sure that termbox does not inadvertantly steal our
commands while executing external commands, and also makes sure
we explicitly reset the screen.

Also, make sure we use a temporary selection.
2017-03-03 13:53:41 +09:00
Daisuke Maki c7f40e4346 surpress error message when user canceled 2017-02-10 07:06:34 +09:00
Daisuke Maki a98498e3e8 oops, remove reference to golang.org/x/net/context 2016-12-14 11:06:44 +09:00
Daisuke Maki e432146891 Test for previous fix 2016-11-14 20:27:53 +09:00
Daisuke Maki d8e5bcb349 Move handling collecting results out of the context
This avoids possibly running a race condition during doFinish,
as doFinish onyl notifies that we're exiting now. Collecting the
data is now handled in the main function, after all of the
sub-goroutines are done.

fixes #321 (but only for peco > 0.3.6)
2016-07-01 13:19:02 +09:00
Daisuke Maki 8d89338eb2 Fix Ignorable error detection/test 2016-06-23 02:24:29 -04:00
Daisuke Maki bf161fb19a Make it possible to swap a buffer instead of os.Stdout 2016-06-18 17:40:33 +09:00
Daisuke Maki f036f025a0 Oops, use Output() 2016-06-18 17:40:33 +09:00
Daisuke Maki cd1c759a91 Properly respect -h/--help
fixes #305
2016-06-18 17:40:33 +09:00
Daisuke Maki 8f93144a19 use interface to detect error type 2016-06-18 17:40:33 +09:00
Daisuke Maki 7a239e4592 Fix tests, and things that change with it 2016-06-18 17:40:33 +09:00
Daisuke Maki 77099ef426 collect results from selection buffer 2016-06-18 17:40:33 +09:00
Daisuke Maki 406cfe3bd7 Trying to get rid of "everything is a Ctx" 2016-06-18 17:39:02 +09:00
Daisuke Maki 761b700aab add proper newline 2015-03-17 15:37:50 +09:00
Daisuke Maki e8915c03cb More refactoring for testing 2015-03-17 15:37:48 +09:00
Daisuke Maki 99c4e9b6d0 Move CLI stuff to cli.go (in anticipation of future testing work) 2015-03-17 15:37:48 +09:00
Daisuke Maki 4af9fc5b43 lestrrat's work in progress 2015-03-17 15:37:48 +09:00
Daisuke Maki f0c506536a version++; this is v0.2.12 2015-02-27 06:55:20 +09:00
Daisuke Maki 0ad82671a0 version++; this is v0.2.11 2014-12-16 07:41:05 +09:00
Daisuke Maki c44aa5794c Make sure we have the correct default values for layoutType
1. the peco command's --layout should have a default value
2. NewCtx(...) should not set the value of layoutType if the value is ""

fixes #212
2014-12-11 11:29:08 +09:00
Daisuke Maki 5e28de0a64 Simple change to avoid using an array
Use a channel instead of an array -- no reason, really, but all those
seemingly duplicate []Match declarations were starting to annoy me
2014-11-01 21:05:31 +09:00
Daisuke Maki bd7ceaf6f5 more fixes against matcher 2014-10-08 21:11:10 +09:00
Daisuke Maki a6d046394c version++; this is v0.2.10 2014-09-24 19:11:35 +09:00
Daisuke Maki 98b19505e5 version++; this is v0.2.9 2014-09-08 10:26:53 +09:00
sona_tar 81c34e5a2a exec gofmt 2014-09-03 05:55:09 +09:00
sona_tar 57a546c8f2 Refacotr about checking bool type 2014-09-03 05:44:49 +09:00
sona_tar 0446c97734 Fix initial-matcher error message 2014-09-03 00:11:02 +09:00
sona_tar f380195c2e Return Error, if Invalid Matcher 2014-09-02 23:24:46 +09:00
Daisuke Maki 541446a87c version++; this is v0.2.8 2014-09-01 15:10:10 +09:00
Daisuke Maki 54497c83f8 version++; this is v0.2.7 2014-09-01 10:18:24 +09:00
Daisuke Maki b1f78317b0 version++; this is v0.2.6 2014-08-31 07:24:53 +09:00
lestrrat 9fcafb70b6 Merge pull request #177 from peco/testing
merge testing branch
2014-08-31 07:18:16 +09:00
Daisuke Maki 3daa824e8e Refactor exitStatus 2014-08-27 14:13:40 +09:00
Daisuke Maki b7605254a7 Apply conversion 2014-08-22 14:27:23 +09:00
mattn bb1ea393a1 Cosmetic change 2014-08-21 20:39:16 +09:00
Daisuke Maki 1e02a23bbb FINALLY do away with the redandunt specification of option description 2014-08-21 20:31:45 +09:00
kei-s 9dfe97008a Fix to show prompt by command line option 2014-08-20 20:05:05 +09:00
Daisuke Maki 6362fbc763 version++; this is v0.2.5 2014-08-18 12:08:11 +09:00
Daisuke Maki f9ee817fd5 Allow setting layout from config file
...So you don't have to type it all the time!
2014-08-16 21:13:32 +09:00
Daisuke Maki 7ed340e6ad Make layout selectable from command line
Note: bottom-up is still broken
2014-08-16 18:17:39 +09:00
Daisuke Maki 5d7f648535 version++; this is v0.2.4 2014-08-13 15:09:20 +09:00
mattn 67b59846f1 Add deprecated in doc 2014-08-08 14:43:12 +09:00
mattn 70f0c2f06a Initial matcher 2014-08-08 12:14:34 +09:00
Daisuke Maki b8e0c8f37d version++; this is v0.2.3 2014-07-28 16:00:15 +09:00
Daisuke Maki 13f85d3884 version++; this is v0.2.2 2014-07-23 16:37:07 +09:00
Daisuke Maki 22fc3a48e7 version++; this is v0.2.1 2014-07-15 15:03:00 +09:00
Daisuke Maki 620e324c5e golint 2014-07-12 16:41:30 +09:00
Daisuke Maki 9f06c37030 version++; this is v0.2.0 2014-07-07 12:09:30 +09:00