summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Simplify input_delimiter handlingJohn Hawthorn2019-08-16
|
* Add ability to use null as input delimiter.Ashkan Kiani2019-08-16
| | | | | Update tty to print newline as space Add tty_putc
* Set default options in config.def.hJohn Hawthorn2019-02-02
|
* Precompute tolower in match_positionsJohn Hawthorn2018-10-13
| | | | | | | | | | | | | | | This makes match_positions significantly faster on MacOS by calling tolower() O(N) times instead of O(N*N) Before: $ time ./fzy -e linux --benchmark < linux_files.txt ./fzy -e linux --benchmark < linux_files.txt 13.24s user 0.03s system 381% cpu 3.483 total After: $ time ./fzy -e linux --benchmark < linux_files.txt ./fzy -e linux --benchmark < linux_files.txt 4.57s user 0.02s system 381% cpu 1.204 total
* Version 1.0John Hawthorn2018-09-23
|
* Use do {} while in action_del_charJohn Hawthorn2018-09-23
|
* Remove unnecessary check from action_del_charJohn Hawthorn2018-09-23
|
* Better pselect error handlingJohn Hawthorn2018-09-23
|
* Redraw on signalsJohn Hawthorn2018-09-23
|
* Allow -1 timeout to mean infiniteJohn Hawthorn2018-09-23
|
* Allow masking signals in tty_input_readyJohn Hawthorn2018-09-23
|
* Return 0 on pselect EINTRJohn Hawthorn2018-09-23
|
* Switch to pselectJohn Hawthorn2018-09-23
|
* Pass a timeout to tty_input_readyJohn Hawthorn2018-09-23
|
* Reduce ambiguous char wait time to 25msJohn Hawthorn2018-09-09
|
* Merge branch 'abort_on_escape'John Hawthorn2018-09-09
|\
| * Abort if Esc is pressedJason Felice2018-05-04
| |
| * Initialize fd_set correctlyJason Felice2018-05-04
| |
* | Fix formattingJohn Hawthorn2018-09-09
| |
* | Disable line wrap when printing candidatesJohn Hawthorn2018-09-09
| | | | | | | | | | This solves the line wrapping issue with much simpler code, which also works better with Unicode characters and when the terminal is resized.
* | Add sequence to disable line wrapJohn Hawthorn2018-09-09
| |
* | Merge pull request #77 from syrrim/uniJohn Hawthorn2018-09-09
|\ \ | | | | | | Add utf-8 support to input, fixes #21
| * | add utf-8 support to input, fixes #21syrrim2018-04-23
| |/ | | | | | | | | | | - non ascii bytes won't be ignored - one can seek over and delete whole utf-8 codepoints at a time - the cursor will be positioned properly around double width chars
* | Add support for underlining selected itemMichael Mackus2018-07-18
| |
* | Merge pull request #86 from neuschaefer/typoJohn Hawthorn2018-06-18
|\ \ | | | | | | choices: Fix a typo ("stings")
| * | choices: Fix a typo ("stings")Jonathan Neuschäfer2018-06-17
| | |
* | | Fix reading choices if stdin is a ttyJohn Hawthorn2018-06-17
| | | | | | | | | | | | | | | Previously we deferred reading choices to after initializing the tty. This makes sense only when stdin and our tty aren't the same.
* | | Initialize tty before reading choicesJohn Hawthorn2018-06-17
|/ / | | | | | | | | | | | | | | | | It's possible for user input to arrive while fzy was still reading choices from stdin. Previously, this would happen before the correct termios were set, causing fzy to misinterpret Enter as Ctrl-J for example. Fixes #81
* / tty_interface: Fix comments about CTRL-J and CTRL-KJonathan Neuschäfer2018-06-17
|/ | | | Fixes: 5a3ce8b ("Support movement with CTRL-J/CTRL-K")
* Merge pull request #71 from tgeng/masterJohn Hawthorn2018-04-21
|\ | | | | Support cursor jumping with Home and End keys
| * Fix home/end support on MacTianyu Geng2018-03-19
| |
| * Support cursor jumping with Home and End keysTianyu Geng2018-02-05
| |
* | tty_interface: Don't show score if it doesn't fitJonathan Neuschäfer2018-01-24
|/
* Rewrite cursor implementationJohn Hawthorn2017-10-16
| | | | | | | Index the cursor from the beginning instead of the end, which is easier (at least for me) to think about. This also fixes issues with Ctrl-W in the previous implementation.
* Merge pull request #46 from keith/ks/arrow-keysJohn Hawthorn2017-10-07
|\ | | | | Support arrow key movements
| * Support arrow key movementsKeith Smiley2017-08-13
| |
* | Fix line maximum line length when scores are shownJonathan Neuschäfer2017-09-24
|/
* Ignore bracketed paste charactersKeith Smiley2017-08-13
|
* Add acceptance test for --helpJohn Hawthorn2017-02-07
| | | | Also shorten help to fit 80 characters wide terminal.
* Add -j option to control parallelismJohn Hawthorn2017-01-31
|
* Pass options to choices_initJohn Hawthorn2017-01-31
|
* Merge partially sorted lists in parallelJohn Hawthorn2017-01-26
|
* Replace k-way-merge with 2-way mergeJohn Hawthorn2017-01-26
|
* Perform sort in parallelJohn Hawthorn2017-01-26
|
* Fix memory leak of jobJohn Hawthorn2017-01-26
|
* Support movement with CTRL-J/CTRL-KMichael Stock2017-01-17
|
* Improve parallelism of search workersJohn Hawthorn2017-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the list of candidates was split between threads a priori, with each thread being evenly distributed a contiguous range from the search candidates. This did a bad job of distributing the work evenly. There are likely to be areas with significantly more matches than others (ex. files within directories which match the search terms), as well as areas with longer strings than others (ex. deep directories). Because of the type of data fzy receives, work allocation needs to be dynamic. This commit changes the workers to operate on the candidates in batches, until they have all been processed. Batches are allocated by locking a mutex and grabbing the next available range of BATCH_SIZE candidates. BATCH_SIZE is currently set at 512, which worked best on my laptop in a quick test. This will always be a compromise. Small batch sizes will distribute the work more evenly, but larger batch sizes will be friendlier to CPU caches. Quick testing: Before: ./fzy -e drivers --benchmark < linux_files.txt 1.69s user 0.03s system 163% cpu 1.053 total After: ./fzy -e drivers --benchmark < linux_files.txt 2.12s user 0.02s system 296% cpu 0.721 total
* Store choices on job structJohn Hawthorn2017-01-08
|
* Create search_job structJohn Hawthorn2017-01-08
|
* Remove unused and uninitialized worker struct varJohn Hawthorn2017-01-08
|