Commit graph

469 commits

Author SHA1 Message Date
Daisuke Maki d2c422250e golint 2014-07-12 16:32:09 +09:00
Daisuke Maki 8c1bcab562 more golint 2014-07-12 16:22:08 +09:00
Daisuke Maki ea41547c16 golint: docs 2014-07-12 16:11:42 +09:00
Daisuke Maki c2e61912f2 rename so that we have the same naming policy 2014-07-12 16:06:55 +09:00
lestrrat c263953477 Update README.md 2014-07-12 15:47:46 +09:00
Daisuke Maki fc1f9088bf log changes 2014-07-12 05:17:39 +09:00
lestrrat f1aff5ce79 Merge pull request #155 from peco/combined_action
Combined action
2014-07-12 05:16:01 +09:00
Daisuke Maki 2be415c70c Add docs 2014-07-12 05:09:52 +09:00
Daisuke Maki da74cec637 Convert paging to HubReq 2014-07-11 17:43:13 +09:00
Daisuke Maki b9e23bc87a Use the Batch() function to synchrously execute everything 2014-07-11 17:16:31 +09:00
Daisuke Maki c6e9d97f1f Change to use HubReq to communicate 2014-07-11 17:14:03 +09:00
Daisuke Maki 8efd69240f Refactor channels to a hub struct 2014-07-11 14:57:27 +09:00
Daisuke Maki 8fb86c037a Move to a named struct 2014-07-11 14:52:07 +09:00
Daisuke Maki d0bbb443e1 start refactoring ctx.go 2014-07-11 14:42:07 +09:00
Daisuke Maki 7d3310fce5 Create combined actions.
This change still doesn't work, as data modification happens at
different goroutines and some things just don't make sense then
2014-07-11 14:39:31 +09:00
lestrrat 32481b13ea Merge pull request #151 from peco/devel
Documentation fixes
2014-07-07 18:07:15 +09:00
lestrrat 6381287366 Update README.md
Add demo about range selection
2014-07-07 18:02:35 +09:00
Daisuke Maki 2aae0e11b3 his name is not in the git log, but it's pretty much his code, so he deserves to be here 2014-07-07 17:59:56 +09:00
Daisuke Maki ed84974b0d his name is not in the git log, but it's pretty much his code, so he deserves to be here 2014-07-07 14:26:07 +09:00
Daisuke Maki f7bcbba81f Chnage hacking docs 2014-07-07 12:52:40 +09:00
Daisuke Maki 9f1caccc82 oops, update AUTHORS 2014-07-07 12:16:57 +09:00
Daisuke Maki 9f06c37030 version++; this is v0.2.0 2014-07-07 12:09:30 +09:00
Daisuke Maki 8f75df4b85 oops 2014-07-07 12:08:06 +09:00
Daisuke Maki 6e60e88d29 Update rocs 2014-07-07 12:06:35 +09:00
Daisuke Maki 271e58257d docs 2014-07-07 12:05:35 +09:00
lestrrat 19320cf043 Merge pull request #150 from peco/rename_selection_mode_to_range_mode
Rename functions to RangeMode instead of SelectMode
2014-07-07 12:05:01 +09:00
Daisuke Maki 8f809dc1dd Rename functions to RangeMode instead of SelectMode 2014-07-07 12:02:20 +09:00
lestrrat 738566cef4 Merge pull request #149 from peco/add_current_line_only_if_no_selection
Change how peco.Finish handles the line under cursor
2014-07-07 10:09:51 +09:00
Daisuke Maki b2e1b46a76 Change how peco.Finish handles the line under cursor
Only add the line where the cursor is only if there are no other
selected lines before hand. This apparently matches what percol does,
and I agree that it's more intuitive

refs: http://twitter.com/mattn_jp/status/485951916040413184
2014-07-07 10:05:36 +09:00
lestrrat 2a28767037 Merge pull request #148 from peco/delay_terminal_init
Delay the terminal initialization until incoming buffer is ready
2014-07-07 10:03:35 +09:00
Daisuke Maki 4c7616b515 Delay the terminal initialization until incoming buffer is ready
This change fixes #144 by delaying all the terminal initialization
until there's something coming in from the standard input.

Without this, for example, a succesive chain of commands that expect to
use stdin will fail, because peco might accidentally grab the stdin
under the hood. With this change, peco is forced to wait to do any
terminal related stuff until some output has been spewed by the
previous command (which is most likely when the command is ready to
give up the control of the terminal), so things work again.
2014-07-07 09:44:35 +09:00
lestrrat 7054460fe5 Merge pull request #146 from peco/trie_key_sequence
Trie key sequence
2014-07-07 09:27:09 +09:00
Daisuke Maki 54db85a9ae Update docs 2014-07-06 19:58:51 +09:00
Daisuke Maki 280c573f4e Fix tests 2014-07-06 19:51:33 +09:00
Daisuke Maki 9bbfaac77d Various structural changes
* Compile ahocorosick matcher laizly
* Move key mappings to keyseq, as we do not directly interface them in
  the main peco package
2014-07-06 18:39:24 +09:00
lestrrat 55b3acc0ab Merge pull request #141 from yuya-takeyama/prompt_option
Add --prompt option
2014-07-06 00:57:44 +09:00
Yuya Takeyama c32ac8ff1d Reflect feedback 2014-07-06 00:49:37 +09:00
lestrrat e166481476 Merge pull request #142 from yuya-takeyama/ignore_peco_binary
Ignore peco binary
2014-07-06 00:46:58 +09:00
Yuya Takeyama 6e2d02fcd5 Ignore peco binary 2014-07-05 23:49:06 +09:00
Yuya Takeyama d79611be52 Write explanation about --prompt option 2014-07-05 23:40:14 +09:00
Daisuke Maki 9264c9fa7e Remove global Keyseq, embed in Keymap 2014-07-05 22:29:34 +09:00
Daisuke Maki 8d84660f67 Start moving away from the old way of using the Keymap object 2014-07-05 21:47:14 +09:00
Daisuke Maki 8c3e629dad Various
* Alt key mod now work again
* Use TrimSpace
* Remove some unused code (need to delete a LOT more)
2014-07-05 21:30:30 +09:00
Yuya Takeyama 751752cd36 Add --prompt option 2014-07-05 18:38:34 +09:00
Daisuke Maki 000b5fc607 Change rules for receiving key sequences
* Longest sequence always wins
* If you would like to break out of typing in a sequence, you must
  call peco.Cancel
* The Konami command now needs to start with C-x

TODO: remove all that Keymap code that doesn't get used anymore
2014-07-05 18:22:42 +09:00
Daisuke Maki 6f50694f31 Fix test 2014-07-05 14:02:51 +09:00
Daisuke Maki b661cae32d one more crash to fix 2014-07-05 13:54:09 +09:00
Daisuke Maki 51f7abe5e2 check n.Value() before doing anything
should fix #139
2014-07-05 13:42:27 +09:00
Daisuke Maki 356972173c fix tests 2014-07-05 13:13:33 +09:00
Daisuke Maki 97ad6837a7 Update README 2014-07-05 13:04:47 +09:00