Daisuke Maki
fc18c0d3de
Methodically add function comments
2026-02-20 10:55:49 +09:00
Daisuke Maki
f8694463a2
fix: remove redundant Esc timer, trust tcell disambiguation
2026-02-19 20:01:58 +09:00
Daisuke Maki
95e13933c2
Do away with interface.go files
2026-02-18 21:12:19 +09:00
Daisuke Maki
cf77e13382
Extract escKeyTimeout constant
2026-02-18 15:57:20 +09:00
Daisuke Maki
46331edcfd
Check for far wider range of things in lint
2026-02-18 07:49:40 +09:00
Daisuke Maki
873d6c4236
Handle esc in the input loop as well
2026-02-17 11:04:13 +09:00
lestrrat
550d56c9a4
Merge pull request #622 from peco/rename-termbox
...
Replace Termbox (name references) with Tcell
2026-02-16 23:52:43 +09:00
Daisuke Maki
a1d7596b1a
Replace Termbox (name references) with Tcell
2026-02-16 23:50:19 +09:00
Daisuke Maki
b775ac5dea
Fix possible input modifier detection race
2026-02-16 23:08:47 +09:00
Daisuke Maki
b3264ffd9a
see if this fixes flaky tests
2026-02-16 18:11:15 +09:00
Daisuke Maki
e9c5582ba1
Initial pass
2026-02-13 12:35:06 +09:00
Daisuke Maki
43ee9051f8
Fix blocking issue cased by #491
...
... by punting the problem when the input is an infinite stream.
This commit fixes the blocking, but the subsequent queries don't seem
to be properly running
refs #494
2020-01-09 20:22:18 +09:00
Daisuke Maki
55cdd5825f
fix tests to more accurately reproduce user typing
2020-01-01 15:58:36 +09:00
Thomas Aynaud
281db7f5e3
Go fmt
2018-06-18 13:50:20 +02:00
Daisuke Maki
6d5a2065a2
spelling
2017-01-09 19:07:34 +09:00
Daisuke Maki
61b5d22fb8
Move stuff around for better code organization
2016-12-14 11:00:22 +09:00
Daisuke Maki
821af182ab
reinstate single key jump
...
the caching was more agressive than before, and we forgot to
initialize the structure correctly
TODO: Write tests to catch this
fixes #331
2016-08-22 17:56:32 +09:00
Daisuke Maki
87b4ad48a0
fix to work with new pipeline
2016-08-18 11:04:40 +09:00
Daisuke Maki
71e367bda0
Fix handling of single esc/alt
2016-06-18 17:40:33 +09:00
Daisuke Maki
c12cd97d29
Use pdebug instead of trace
2016-06-18 17:40:33 +09:00
Daisuke Maki
78d8d6a35c
fmt
2016-06-18 17:40:33 +09:00
Daisuke Maki
75b3bd33d8
Cleanup
2016-06-18 17:40:33 +09:00
Daisuke Maki
d5381eeee4
Cleanup
2016-06-18 17:40:33 +09:00
Daisuke Maki
9ef1da7a71
Ah, finally realized that Input was looking at a stale version of peco.Keymap
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
3c615080ba
Cleanup some code
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
586c36a0e7
Let us being the great refactor
...
* Move internal stuff to internal
* Properly use conditional compilation to detect Windows
* Move type declarations to one location (except for a few places still)
2015-09-28 21:39:43 +09:00
Daisuke Maki
5beaeb6328
Only do the page re-calculation if we have a running query
...
refs #260
2015-09-28 16:52:08 +09:00
Daisuke Maki
7ee40fe3b0
Conditionally bake in debug code
2015-03-17 15:37:52 +09:00
Daisuke Maki
a18faef700
remove unused parameter from SendDraw
2015-03-17 15:37:50 +09:00
Daisuke Maki
4af9fc5b43
lestrrat's work in progress
2015-03-17 15:37:48 +09:00
Daisuke Maki
4594f2d26d
newMutex, sync.Locker
2014-10-14 16:44:33 +09:00
Daisuke Maki
a62bc068b2
Rip out termbox functions from main code so we can assigh a dummy later
...
in tests
2014-08-21 21:12:48 +09:00
Daisuke Maki
73473f0201
golint
2014-07-23 18:12:50 +09:00
Daisuke Maki
065ca648c4
This change show current key sequence being handled
2014-07-15 09:23:03 +09:00
Daisuke Maki
8c1bcab562
more golint
2014-07-12 16:22:08 +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
9264c9fa7e
Remove global Keyseq, embed in Keymap
2014-07-05 22:29:34 +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
Takashi Kokubun
85f8629311
Accept key sequence
2014-07-03 23:50:44 +09:00
Daisuke Maki
675bb8b7c0
refactor deep blocks
2014-07-03 19:05:01 +09:00
Daisuke Maki
888f8fd7b3
style fix
2014-07-03 16:32:24 +09:00
Daisuke Maki
ca5cbb6fb1
Refactor keymap
...
Created Action/ActionFunc to wrap common operations
refs #121
2014-07-02 21:31:49 +09:00
mattn
539d404868
Refactor workaround code
2014-06-25 10:16:35 +09:00
mattn
cfcd30edcd
Don't handle ModAlt if no M-XXX mappings
2014-06-25 09:50:30 +09:00
Daisuke Maki
f55b8496f5
change delay to 200
2014-06-25 08:53:57 +09:00
Daisuke Maki
3d91dc37e0
Protect mod with a mutex
...
The reason I'm not using defer mutex.Unlock() here is because I don't
want to keep the mutex around while handleKeyEvent() is being
processed.
2014-06-25 08:51:58 +09:00
Daisuke Maki
30107213b3
Modify comments so I know what's going on
2014-06-25 06:19:01 +09:00
mattn
61a8f7c8a2
Handle Alt/Esc both
2014-06-25 03:36:48 +09:00