Commit graph

19 commits

Author SHA1 Message Date
Daisuke Maki 2f1f4cbb63 Fix a bunch of race conditions 2014-10-08 20:50:57 +09:00
Daisuke Maki 8c1bcab562 more golint 2014-07-12 16:22:08 +09:00
Daisuke Maki c6e9d97f1f Change to use HubReq to communicate 2014-07-11 17:14:03 +09:00
Daisuke Maki 6d6c57c1ce Implement an asynchronous buffer reader
should fix #113
2014-07-01 10:16:10 +09:00
Daisuke Maki 81ec17beb0 Draw the status message separately for efficiency
refs #75
2014-06-27 21:15:09 +09:00
Daisuke Maki 7d409358b2 Cleanup, comment 2014-06-17 15:10:50 +09:00
Daisuke Maki 0730a8eaf5 Optimize drawing
This change forces the filter component to cancel the previous query
May fix #68
2014-06-17 14:05:51 +09:00
Daisuke Maki f6a176c4b0 Implment multiple-line selection
Should fix #43
2014-06-16 12:38:20 +09:00
Daisuke Maki 2a03cdd02c Fix synchronization
Because previously everything has been written using non-buffered
channels, the request to refresh the screen would always block.
This resulted in the main thread always waiting to write to
ctx.drawCh until viewer.Loop() registered itself to the waitgroup
via wg.Add(), therefore making the successive wg.Wait() actually wait.

When (this change does not do this) we do use buffered channels,
this guarantee breaks, and the main thread goes immediately to
wg.Wait() before viewer.Loop() has the chance to register
itself to the wait group

This change explicitly forces the main thread to call wg.Add()
to prevent this from happening
2014-06-13 18:08:36 +09:00
mattn eea8c59e53 Configurable Default Matcher 2014-06-13 14:36:53 +09:00
Daisuke Maki e10e903bec Move stuff around, and make Matcher interface saner
Start working on #39
2014-06-13 11:10:52 +09:00
mattn 3ec90a695e Remove debug code 2014-06-12 20:04:04 +09:00
mattn e1aef87936 Implement custom matcher 2014-06-12 20:02:26 +09:00
Daisuke Maki ba92ec1377 Implement --no-ignore-case
Default behavior is to ignore case
2014-06-12 18:20:13 +09:00
cho45 5aacc4aee9 Fix dropping input
1. input key (eg. `foo`)
 2. start query for `foo`
 3. input key again `foob` (add `b`)
 4. end query for `foo` and reset query to `foo` (`b` is dropped)
2014-06-11 23:19:54 +09:00
Syohei YOSHIDA 2b3fc49033 Implement 'and' match 2014-06-11 16:47:56 +09:00
Daisuke Maki 17bc6ab0d1 Rename project to peco 2014-06-10 13:19:45 +09:00
Daisuke Maki aebeb30b3c Make it even more go-ish 2014-06-09 18:25:22 +09:00
Daisuke Maki c304a479d7 More go-ish! 2014-06-09 12:35:16 +09:00