Commit graph

9 commits

Author SHA1 Message Date
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
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 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 5884b661cc Tweak AcceptKey function
Now the functin properly handles unmatched sequences, and does the what
the original keybinding was supposed to do instead of doing... nothing
2014-07-05 13:01:05 +09:00
Daisuke Maki 11d9a209d9 Very crude hook-up of keymap to ahocorasick keyseq 2014-07-05 11:29:24 +09:00
Daisuke Maki d766669dd0 Rip and adapt koron/gelatin for our purposes 2014-07-05 11:29:24 +09:00