diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2018-09-27 15:27:08 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-09-28 10:33:52 +0900 |
| commit | 0d748a0699760003444efca219eb4bb245996008 (patch) | |
| tree | 791e4849d9bdfb06d013dac96c2197fa2739c0e5 /src/constants.go | |
| parent | 27c40dc6b0cc0402b1602b76202be80841329a1d (diff) | |
| download | fzf-0d748a0699760003444efca219eb4bb245996008.tar.gz | |
Kill running preview process after 500ms when focus has changed
Close #1383
Close #1384
Diffstat (limited to 'src/constants.go')
| -rw-r--r-- | src/constants.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/constants.go b/src/constants.go index a8e20910..5f583e4c 100644 --- a/src/constants.go +++ b/src/constants.go @@ -22,10 +22,11 @@ const ( readerPollIntervalMax = 50 * time.Millisecond // Terminal - initialDelay = 20 * time.Millisecond - initialDelayTac = 100 * time.Millisecond - spinnerDuration = 200 * time.Millisecond - maxPatternLength = 300 + initialDelay = 20 * time.Millisecond + initialDelayTac = 100 * time.Millisecond + spinnerDuration = 200 * time.Millisecond + previewCancelWait = 500 * time.Millisecond + maxPatternLength = 300 // Matcher numPartitionsMultiplier = 8 @@ -76,6 +77,7 @@ const ( ) const ( + exitCancel = -1 exitOk = 0 exitNoMatch = 1 exitError = 2 |
