--multi to take optional argument to limit the number of selection

Close #1718
Related #688
This commit is contained in:
Junegunn Choi
2019-11-02 12:55:26 +09:00
parent a2e9366c84
commit 072066c49c
4 changed files with 123 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
package fzf
import (
"math"
"os"
"time"
@@ -27,6 +28,7 @@ const (
spinnerDuration = 200 * time.Millisecond
previewCancelWait = 500 * time.Millisecond
maxPatternLength = 300
maxMulti = math.MaxInt32
// Matcher
numPartitionsMultiplier = 8