Commit Graph

141 Commits

Author SHA1 Message Date
phiresky
977074c6e6 rename FileMatcher 2020-09-10 20:39:31 +02:00
phiresky
0895e7a6cf continue refactoring 2020-09-10 20:39:31 +02:00
phiresky
766211edc4 partial fixes 2020-06-12 00:09:49 +02:00
phiresky
2f580b135a partial migration to read->read 2020-06-11 23:11:47 +02:00
phiresky
d0d74adfe9 try read -> read fn 2020-06-11 14:38:50 +02:00
Matt Brubeck
8768afc2c8 Switch to tree_magic_mini fork 2020-06-10 08:56:52 -07:00
phiresky
05e1822299 custom adapters doc file (incomplete) 2020-06-09 22:45:42 +02:00
phiresky
8070a94d84 make poppler and pandoc internal custom adapters 2020-06-09 18:27:22 +02:00
phiresky
144b554f0d zip print bytes pretty 2020-06-09 13:27:34 +02:00
phiresky
7b70188d77 add lots of debug logs, perf timings 2020-06-09 13:25:38 +02:00
phiresky
5410da1133 add lots of debug and timings 2020-06-09 12:47:34 +02:00
phiresky
94099baeb3 custom adapter initial 2020-06-09 01:45:52 +02:00
phiresky
963524bbf5 config file (WIP) 2020-06-08 23:11:43 +02:00
phiresky
0001feb24b add experimental rga-fzf binary 2020-06-08 14:02:00 +02:00
phiresky
501da361ee fix newlines in readme 2020-06-06 15:09:22 +02:00
phiresky
46896f13ac update adapters section in readme automatically 2020-06-06 15:07:59 +02:00
phiresky
32021c3567 auto update readme 2020-06-06 15:01:53 +02:00
phiresky
cb6ad328a2 better errors 2020-06-06 13:18:30 +02:00
phiresky
f2d9393832 switch failure -> anyhow, parse byte suffix in cache-max-blob-len 2020-06-06 12:57:43 +02:00
phiresky
5d97c2ad5f log which command is being run in spawning file adapters 2020-05-20 15:59:14 +02:00
phiresky
faabfa5a42
Merge pull request #51 from liskin/patch-1
fix help for --rga-cache-max-blob-len
2020-05-19 12:48:58 +02:00
phiresky
45dd3346cd fix hyphenation in PDFs 2020-05-19 12:03:44 +02:00
phiresky
d0dcd97232 rustfmt 2020-05-19 12:00:20 +02:00
Tomáš Janoušek
758d0d13c3
fix help for --rga-cache-max-blob-len
Since the arguments are preprocessed in `split_args`, all option arguments must
use equals. This was missing for --rga-cache-max-blob-len and the help was then
misleading:

        --rga-cache-max-blob-len <cache-max-blob-len>
            Max compressed size to cache
2020-05-19 11:50:18 +02:00
phiresky
63a9618357 case insensitive extension matching (fixes #43) 2020-05-19 11:47:21 +02:00
phiresky
2924c8e007 use github workflow instead of travis 2020-05-19 11:10:11 +02:00
phiresky
32c3431837 upgrade dependencies, lints 2020-04-08 12:47:42 +02:00
phiresky
9f11906151 change binary search path, fix #32 2020-04-08 12:40:45 +02:00
phiresky
da10b5c1c9 allow mime type matching for pdf (#39) 2020-04-08 12:33:48 +02:00
Steve Mokris
5bef602958 In readme and built-in help, add cache location on macOS and Windows. 2020-01-12 20:25:28 -05:00
Oleksii Filonenko
9d6cea3d40
Fix SqlAdapter::format_blob (rusqlite API change)
https://docs.rs/rusqlite/0.20.0/rusqlite/types/enum.ValueRef.html#method.as_str
2019-07-27 23:00:28 +03:00
Julien Nicoulaud
6d2df9162c
Fix error message mentionning graphicsmagick instead of imagemagick 2019-06-24 10:47:22 +02:00
Sven-Hendrik Haase
3745f1b2a5
Fix typo 2019-06-23 07:02:25 +02:00
phiresky
002a5e3756 add msvc redistributable to readme 2019-06-19 16:07:49 +02:00
phiresky
04aea49136 readd other platforms, fix windows 2019-06-19 10:58:02 +02:00
phiresky
e4c0cb8349 add windows dependencies and update readme 2019-06-18 22:54:31 +02:00
phiresky
9201add7e0 use exitfailure for cleaner fail output 2019-06-18 21:39:33 +02:00
phiresky
268c313c2f fix test on windows 2019-06-18 16:20:50 +02:00
phiresky
9c285670fd shorten debug output on failure (#7) 2019-06-18 12:15:12 +02:00
phiresky
29b8f1dee4 bring utf16 decoding to parity with ripgrep 2019-06-18 12:13:37 +02:00
phiresky
89fb6cc1a9 fix file ending regex (#13) 2019-06-17 13:00:55 +02:00
phiresky
addb7f7060 less useless log 2019-06-16 23:46:14 +02:00
phiresky
7efd8638ce prevent panic on broken tar checksum 2019-06-16 22:48:28 +02:00
phiresky
5901cdcb5d fix cache key 2019-06-16 12:19:01 +02:00
phiresky
8400a4a2bb decompress: match mime type correctly 2019-06-16 12:05:27 +02:00
phiresky
21f5178d15 pass detection reason to adapter 2019-06-16 11:37:27 +02:00
phiresky
d8b57f2f8a split decompress adapter 2019-06-16 11:07:29 +02:00
phiresky
f6d44bd1da add adapters list to readme 2019-06-15 21:22:07 +02:00
phiresky
5bf57a07d3 (cargo-release) version 0.8.7 2019-06-15 11:00:45 +02:00
phiresky
0dffbf2904 to plain 2019-06-14 16:20:48 +02:00
phiresky
5f2b5e3399 more documentation 2019-06-13 16:26:03 +02:00
phiresky
d0a1f8962b doc 2019-06-13 15:22:33 +02:00
phiresky
e5246491b0 better documentation 2019-06-12 22:55:18 +02:00
phiresky
1f6e793a7f tesseract single threaded 2019-06-12 17:44:47 +02:00
phiresky
1e9c2e45d6 add tesseract adapter 2019-06-12 17:23:30 +02:00
phiresky
d1b55e80b7 allow adapters to be disabled by default 2019-06-12 12:39:27 +02:00
phiresky
c8f346c4dd restructure 2019-06-12 12:25:29 +02:00
phiresky
8353c68f79 rename crate 2019-06-11 20:35:20 +02:00
phiresky
69b566d8e4 smart case by default 2019-06-11 16:06:23 +02:00
phiresky
c27bc4edf2 order adapters according to original priorities 2019-06-11 14:40:58 +02:00
phiresky
bca435557b fix --rga-accurate (matching by mime types) 2019-06-11 14:11:08 +02:00
phiresky
e9bd500c1e split args 2019-06-11 13:44:00 +02:00
phiresky
0489a49d66 add slow matching (base) 2019-06-11 13:35:28 +02:00
phiresky
a4c82de43d actually implement choosing adapters 2019-06-08 00:04:48 +02:00
phiresky
d8fcf7b015 fix caching 2019-06-07 23:17:33 +02:00
phiresky
d06d27709b more options, less constants 2019-06-07 23:04:18 +02:00
phiresky
0cedf72de6 fix 2019-06-07 21:46:17 +02:00
phiresky
dfb1df2e92 better arg parsing and passing 2019-06-07 21:46:03 +02:00
phiresky
5d9dee15e8 check for too deep archive recursion 2019-06-07 20:12:24 +02:00
phiresky
9c5efa1970 pass around config object 2019-06-07 19:00:24 +02:00
phiresky
957e06fc64 add sqlite adapter 2019-06-07 16:57:11 +02:00
phiresky
e72d9c607b fix error message on missing rg 2019-06-07 15:56:04 +02:00
phiresky
209685d588 fix recursion depth 2019-06-07 15:46:54 +02:00
phiresky
ea285b1a5e track recursion depth 2019-06-07 15:43:19 +02:00
phiresky
434063907d simplify tar 2019-06-07 13:12:44 +02:00
phiresky
b69f903b58 performance 2019-06-07 01:17:55 +02:00
phiresky
d5606094f5 binary file detection 2019-06-07 00:57:53 +02:00
phiresky
12383b0c21 lol, i'm stupid 2019-06-07 00:41:41 +02:00
phiresky
2d20563e2c fix passthrough, invalid encodings 2019-06-07 00:18:04 +02:00
phiresky
0c3bcfd115 docu 2019-06-06 23:50:58 +02:00
phiresky
e98acedc81 cleanup 2019-06-06 23:46:44 +02:00
phiresky
83b804bef2 finally fix tar 2019-06-06 23:19:59 +02:00
phiresky
83114f66bf tar adapter (broken compression) 2019-06-06 17:59:15 +02:00
phiresky
92eb76e534 zip exclude dir 2019-06-06 16:48:31 +02:00
phiresky
cd1a26ffff pdf: add page number prefix 2019-06-06 14:55:27 +02:00
phiresky
ba58151dac add arg parsing 2019-06-06 12:31:18 +02:00
phiresky
1a0bbc798e add zip support! 2019-06-06 11:00:13 +02:00
phiresky
b48f456963 use failure crate, etc 2019-06-05 21:28:35 +02:00
phiresky
e98c60001d implement caching 2019-06-05 16:43:40 +02:00
phiresky
f53688269e simplify somewhat 2019-06-05 11:42:45 +02:00
phiresky
16b4277d36 initial working version 2019-06-04 20:08:26 +02:00