Allow search query longer than the screen width

By implementing horizontal scrolling of the prompt line.
Maximum length is hard-coded to 300-chars.

Close #1312
Fix #1225
This commit is contained in:
Junegunn Choi
2018-06-25 19:07:12 +09:00
parent f0fe79dd3b
commit 0edbcbdf19
2 changed files with 39 additions and 17 deletions

View File

@@ -22,9 +22,10 @@ const (
readerPollIntervalMax = 50 * time.Millisecond
// Terminal
initialDelay = 20 * time.Millisecond
initialDelayTac = 100 * time.Millisecond
spinnerDuration = 200 * time.Millisecond
initialDelay = 20 * time.Millisecond
initialDelayTac = 100 * time.Millisecond
spinnerDuration = 200 * time.Millisecond
maxPatternLength = 300
// Matcher
numPartitionsMultiplier = 8