summaryrefslogtreecommitdiff
path: root/src/constants.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-01-16 18:07:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-01-16 18:07:50 +0900
commit8695b5e319e02efbfdf70800dce1c73d40378d86 (patch)
treecae8b94cbc46c706ecfaf4a7c619ce6e055a807e /src/constants.go
parent95970164ad0f03cd1a95aec2ad3d3cba180c0308 (diff)
downloadfzf-8695b5e319e02efbfdf70800dce1c73d40378d86.tar.gz
Reduce the initial delay when --tac is not given
fzf defers the initial rendering of the screen up to 100ms if the input stream is ongoing to prevent unnecessary redraw during the initial phase. However, 100ms delay is quite noticeable and might give the impression that fzf is not snappy enough. This commit reduces the maximum delay down to 20ms when --tac is not specified, in which case the input list quickly fills the entire screen.
Diffstat (limited to 'src/constants.go')
-rw-r--r--src/constants.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/constants.go b/src/constants.go
index 0145958c..6f6898d5 100644
--- a/src/constants.go
+++ b/src/constants.go
@@ -18,7 +18,8 @@ const (
defaultCommand = `find . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//`
// Terminal
- initialDelay = 100 * time.Millisecond
+ initialDelay = 20 * time.Millisecond
+ initialDelayTac = 100 * time.Millisecond
spinnerDuration = 200 * time.Millisecond
// Matcher