summaryrefslogtreecommitdiff
path: root/src/pattern.go
AgeCommit message (Collapse)Author
2015-10-02Use trimmed length when --nth is used with --tiebreak=lengthJunegunn Choi
This change improves sort ordering for aligned tabular input. Given the following input: apple juice 100 apple pie 200 fzf --nth=2 will now prefer the one with pie. Before this change fzf compared "juice " and "pie ", both of which have the same length.
2015-09-12Fix #344 - Backward scan when `--tiebreak=end`Junegunn Choi
2015-09-12Make it possible to unquote the term in extended-exact modeJunegunn Choi
Close #338
2015-08-10Fix --with-nth performance; avoid regex if possibleJunegunn Choi
Close #317
2015-08-02Performance tuning - eager rune array conversionJunegunn Choi
> wc -l /tmp/list2 2594098 /tmp/list2 > time cat /tmp/list2 | fzf-0.10.1-darwin_amd64 -fqwerty > /dev/null real 0m5.418s user 0m10.990s sys 0m1.302s > time cat /tmp/list2 | fzf-head -fqwerty > /dev/null real 0m4.862s user 0m6.619s sys 0m0.982s
2015-06-08Allow ^EqualMatch$Junegunn Choi
2015-04-21Smart-case for each term in extended-search modeJunegunn Choi
Close #208
2015-04-17Improvements in performance and memory usageJunegunn Choi
I profiled fzf and it turned out that it was spending significant amount of time repeatedly converting character arrays into Unicode codepoints. This commit greatly improves search performance after the initial scan by memoizing the converted results. This commit also addresses the problem of unbounded memory usage of fzf. fzf is a short-lived process that usually processes small input, so it was implemented to cache the intermediate results very aggressively with no notion of cache expiration/eviction. I still think a proper implementation of caching scheme is definitely an overkill. Instead this commit introduces limits to the maximum size (or minimum selectivity) of the intermediate results that can be cached.
2015-04-14Fix Unicode case handling (#186)Junegunn Choi
2015-03-31Implement --toggle-sort option (#173)Junegunn Choi
2015-03-19Add support for ANSI color codesJunegunn Choi
2015-03-01Make --filter non-blocking when --no-sort (#132)Junegunn Choi
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.
2015-01-12Reorganize source codeJunegunn Choi
2015-01-12LintJunegunn Choi
2015-01-11Fix race conditionsJunegunn Choi
- Wait for completions of goroutines when cancelling a search - Remove shared access to rank field of Item
2015-01-11Improve prefix/suffix cache lookupJunegunn Choi
2015-01-11Remove unnecessary loop labelJunegunn Choi
2015-01-11Fix Transform result cache to speed up subsequent searchesJunegunn Choi
2015-01-11Fix --with-nth option when query is non-emptyJunegunn Choi
2015-01-09Reduce memory footprintJunegunn Choi
2015-01-05Do not sort terms when building cache keyJunegunn Choi
2015-01-04Rewrite fzf in GoJunegunn Choi