Commit graph

788 commits

Author SHA1 Message Date
Csonka Mihaly
a4e2311263 Add error info to filesystem operations. 2020-03-21 17:43:13 +01:00
Csonka Mihaly
ff264735b9 Add error info to core flow. 2020-03-21 15:56:03 +01:00
Csonka Mihaly
807c3a35a5 Make all regexes static. 2020-03-21 03:22:11 +01:00
Csonka Mihaly
0785f9cf30 Add error info for invalid regex. 2020-03-21 02:52:27 +01:00
Csonka Mihaly
d371300fac Add error info when getting terminal dimensions. 2020-03-21 02:49:36 +01:00
Csonka Mihaly
77d0de839e Fix error message when spawning bash in func. 2020-03-21 02:37:54 +01:00
Csonka Mihaly
a209dd94ca Add error info for welcome handling. 2020-03-21 02:19:06 +01:00
Csonka Mihaly
54fec8728e Add error context to ad-hoc functions. 2020-03-21 02:12:39 +01:00
Csonka Mihaly
0a84a0a2c9 Add error info to preview::extract_elements 2020-03-21 01:43:11 +01:00
Csonka Mihaly
f1182279a9 Add context to possible errors for the repo subcommand. 2020-03-21 01:34:20 +01:00
Csonka Mihaly
1d33211c45 Add context for errors when browsing featured cheatsheets. 2020-03-20 23:24:43 +01:00
Csonka Mihaly
70ec05ba5e Add anyhow dependency. 2020-03-20 22:51:07 +01:00
Denis Isidoro
a0636b1261
Merge pull request #298 from DenSA-Inc/tty-fix
fixed issue of terminal programs like fzf not recognizing stdin as terminal (#267)
2020-03-20 13:22:01 -03:00
densa-inc
c12c2abc69 fixed issue of terminal programs like fzf not recognizing stdin as terminal (#267) 2020-03-20 15:33:36 +01:00
Denis Isidoro
6e1edfb9ee
Merge pull request #297 from DenSA-Inc/fish-fix
Fix fish widget changing tty settings (#296)
2020-03-20 09:14:02 -03:00
densa-inc
1986dd4caf Fix fish widget changing tty settings (#296) 2020-03-20 12:43:31 +01:00
Denis Isidoro
790e24ea49
Mention --multi again 2020-03-19 22:15:02 -03:00
Denis Isidoro
10f0219792
Forward many more parameters to fzf after --- (#294) 2020-03-19 22:01:50 -03:00
Denis Isidoro
64045e32ca
Remove need for lifetime on FzfOpts (#293) 2020-03-19 20:50:45 -03:00
Denis Isidoro
73cd346c1b
fzf-overrides: no need for leading space 2020-03-19 15:27:34 -03:00
Denis Isidoro
f85a4b70f9
Fix typo 2020-03-19 11:19:39 -03:00
Denis Isidoro
2ca1d8fc85
Fix --multi with --column + refactors (#290) 2020-03-19 09:19:50 -03:00
Denis Isidoro
84e28e7885
Small refactors (#289) 2020-03-18 12:29:29 -03:00
Denis Isidoro
87a5efa059
Add version badge 2020-03-18 08:48:03 -03:00
Denis Isidoro
a0bba94db3
Minor fixes (#285) 2020-03-18 08:38:13 -03:00
Denis Isidoro
a08f3cd5d5
Merge pull request #287 from kbknapp/issue-283
Uses a hashset to de-duplicate results
2020-03-18 07:59:38 -03:00
Kevin K
a51a54dbac
Uses a hashset to de-duplicate results
This creates a `HashSet<u64>` using FNV Hashing, because it's much
faster than Rust's default SIP hash and this isn't used for anything
that needs to be cyptographically secure. It also allows us to keep a
hashset of 64bit numbers, instead of Strings or string slices thus
reducing memory consumption.

In unscientific benchmarks of ~5,200 `.cheat` lines containing about
`2,600` duplicate lines there was no noticable increase in memory
consumption (benchmarking time is harder since you wait for human
input), both master (HEAD b78903a9d4) and this commit used 10.8mb max
RSS.

To attempt to measure time (and again max RSS) running master against
this commit using the command `navi --print --path dups_folder/ best "git tag"`
resulted in a *decrease* of memory consumption by about 200k, and no
noticable time increase.

Closes #283
2020-03-17 21:39:00 -04:00
Denis Isidoro
b78903a9d4 Fix typo 2020-03-17 12:57:06 -03:00
Denis Isidoro
97ab7e36c8 Update variable options 2020-03-17 12:53:23 -03:00
Denis Isidoro
4a0a492bf4
Remove travis (#284) 2020-03-17 12:50:22 -03:00
Denis Isidoro
b49ee6a491
Make --allow-extra default (#281) 2020-03-17 12:39:38 -03:00
Denis Isidoro
6e582e4015
Mention navi repo browse (#282) 2020-03-16 23:23:01 -03:00
Denis Isidoro
0b91a374fe
Add navi repo browse (#280) 2020-03-16 22:56:47 -03:00
Denis Isidoro
cc8982f014
Mention featured repos 2020-03-16 14:25:21 -03:00
Denis Isidoro
508801fdfb
Prevent shell execution 2020-03-16 10:44:27 -03:00
Denis Isidoro
68b0054840 Fix typo with release 2020-03-16 10:34:40 -03:00
Denis Isidoro
3f66614818 Bump 2020-03-16 10:22:37 -03:00
Denis Isidoro
62587ad4cf No need to pass version to scripts/tag 2020-03-16 10:17:53 -03:00
Denis Isidoro
9865851080
Merge pull request #274 from mrVanDalo/feature/travis
fix openssl dependency and introduce travis
2020-03-16 10:17:41 -03:00
Ingolf Wagner
ae2b8ee853
cargo update 2020-03-16 20:56:53 +08:00
Ingolf Wagner
8f0a686ddb
Merge branch 'master' into feature/travis 2020-03-16 20:48:59 +08:00
Ingolf Wagner
7c44194aee
travis: add travis build script 2020-03-16 20:45:03 +08:00
Denis Isidoro
2688a72633
Fix typos 2020-03-16 08:27:58 -03:00
Denis Isidoro
081f3216f3
Remove duplicates 2020-03-16 08:23:33 -03:00
Denis Isidoro
be4ea8424f
Add version to assets (#276) 2020-03-16 08:21:28 -03:00
Denis Isidoro
131a635867
Remove OpenSSL dependency (#275) 2020-03-16 08:16:47 -03:00
Denis Isidoro
7eccec0a51 linting 2020-03-16 08:14:02 -03:00
Denis Isidoro
dd6c54f089 wip 2020-03-16 08:13:55 -03:00
Denis Isidoro
503c6b54a3 bump 2020-03-16 08:03:05 -03:00
Denis Isidoro
ebcdb8d162 linting 2020-03-16 08:02:52 -03:00