Commit Graph

16 Commits (7bb75b02136ce77359116b373856867957d5c5b4)

Author SHA1 Message Date
Junegunn Choi 94e8e6419f Make --filter non-blocking when --no-sort (#132)
When fzf works in filtering mode (--filter) and sorting is disabled
(--no-sort), there's no need to block until input is complete. This
commit makes fzf print the matches on-the-fly when the following
condition is met:

    --filter FILTER --no-sort [--no-tac --no-sync]

or simply:

    -f FILTER +s

This removes unnecessary delay in use cases like the following:

    fzf -f xxx +s | head -5

However, in this case, fzf processes the input lines sequentially, so it
cannot utilize multiple cores, which makes it slightly slower than the
previous mode of execution where filtering is done in parallel after the
entire input is loaded. If the user is concerned about the performance
problem, one can add --sync option to re-enable buffering.
9 years ago
Junegunn Choi c1aa5c5f33 Add --tac option and reverse display order of --no-sort
DISCLAIMER: This is a backward incompatible change
9 years ago
Junegunn Choi f5b034095a Fix race condition in asynchronous -1 and -0 10 years ago
Junegunn Choi e808151c28 Make --select-1 and --exit-0 asynchronous 10 years ago
Junegunn Choi 6c2ce28d0d Add `--sync` option 10 years ago
Junegunn Choi cd847affb7 Reorganize source code 10 years ago
Junegunn Choi 7a2bc2cada Lint 10 years ago
Junegunn Choi 9dbf6b02d2 Fix race conditions
- Wait for completions of goroutines when cancelling a search
- Remove shared access to rank field of Item
10 years ago
Junegunn Choi 1c31352675 Update src/README.md and package comment 10 years ago
Junegunn Choi b7bb100810 Improve response time by only looking at top-N items 10 years ago
Junegunn Choi aa05bf5206 Reduce memory footprint 10 years ago
Junegunn Choi f401c42f9c Adjust initial coordinator delay 10 years ago
Junegunn Choi d2f7acbc69 Remove race conditions when accessing the last chunk 10 years ago
Junegunn Choi 0dd024a09f Remove unnecessary delay on non/defered interactive mode 10 years ago
Junegunn Choi baad26a0fd Fix exit conditions of --select-1 and --exit-0 10 years ago
Junegunn Choi f3177305d5 Rewrite fzf in Go 10 years ago