summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Remove unused and uninitialized worker struct varJohn Hawthorn2017-01-08
|
* Fix tty_interface clear for num_lines=0John Hawthorn2016-12-28
|
* Fix a problem that the cursor position shifted upwardmomotaro2016-12-21
|
* Fix segfault when encountering utf-8 charactersJohn Hawthorn2016-08-03
|
* Add sys/select.h to fix building with musl libcDuncaen2016-07-31
|
* Add a few missing static declarationsJohn Hawthorn2016-07-12
|
* Fix segfault when autocompleting on no matchesJohn Hawthorn2016-07-12
|
* Use macros to help with bonus tablesJohn Hawthorn2016-07-12
|
* Use standards-compliant lookup tableJohn Hawthorn2016-07-12
|
* Use a lookup table for precompute_bonusesJohn Hawthorn2016-07-10
|
* Use score_t instead of doubleJohn Hawthorn2016-07-10
|
* Don't consider numbers word separatorsJohn Hawthorn2016-07-10
| | | | | | This made sense on paper when deciding what was a "word". However in reality this is rarely an indication of a separate word. I've found that this caused hexadecimal or base64 strings to be favoured in matches.
* Split bonus computation into own methodJohn Hawthorn2016-07-10
|
* Store result of getopt_long in an intJohn Hawthorn2016-06-22
| | | | This fixes issues on ARM, where char is unsigned.
* Use number of processors as worker countJohn Hawthorn2016-06-22
| | | | | | | Since we're dividing the search set equally between processors, we want to run with the same number of workers that we have CPU execution threads. This avoids having a worker which is starved until the end of execution.
* Store worker_count on choices_tJohn Hawthorn2016-06-22
|
* Use threading when matching/scoringJohn Hawthorn2016-06-22
|
* Use threading when matching/scoringJohn Hawthorn2016-06-22
|
* Change match into if/elseJohn Hawthorn2016-06-22
| | | | | This is marginally faster and I still think it reads very well (maybe better).
* Add tests for exact scoresJohn Hawthorn2016-06-22
| | | | Preparing for some changes to the match method
* Batch together input for searchesJohn Hawthorn2016-06-22
|
* Add pageup and pagedownJohn Hawthorn2016-06-22
|
* Use a struct to store keybindingsJohn Hawthorn2016-06-22
|
* Extract append_search methodJohn Hawthorn2016-06-22
|
* Move all action into their own functionsJohn Hawthorn2016-06-20
|
* Track last searchJohn Hawthorn2016-06-20
| | | | This allows us to avoid explicitly calling out to choices_search
* Use tty_interface_t to communicate exitJohn Hawthorn2016-06-20
|
* Return exit code from runJohn Hawthorn2016-06-20
|
* Use tty_interface_t throughoutJohn Hawthorn2016-06-19
|
* Remove options global variableJohn Hawthorn2016-06-19
|
* Store state in tty_interface_tJohn Hawthorn2016-06-19
|
* Extract tty interface to own fileJohn Hawthorn2016-06-19
|
* Ensure options is passed as a pointerJohn Hawthorn2016-06-19
|
* Extract option parsing to separate fileJohn Hawthorn2016-06-19
|
* Remove calculate_score (same as match_positions)John Hawthorn2016-06-08
|
* Move equality detection within calculate_scoreJohn Hawthorn2016-06-08
|
* Skip sorting on empty search stringJohn Hawthorn2016-06-08
| | | | | | | | | For the empty query, sorting can be the slowest part of the search. Since the empty query gives no scores, and we've now made our sort stable, in this case we can simply skip sorting. A sort of 250000 entries took about ~10ms on my laptop, which is not a huge amount. However it's not 0 and is free to skip.
* Make sorting stableJohn Hawthorn2016-06-08
| | | | | C's stdlib's qsort isn't a stable sort. We want it to be so that any equivalent matches are stored in the order they came in.
* Move fzytest into test/ directoryJohn Hawthorn2016-05-21
|
* Move sources into src directoryJohn Hawthorn2016-05-21