Commit Graph

128 Commits

Author SHA1 Message Date
Nikita Ivanov
6b5b6bc91c
Fix 2022-06-11 13:20:18 +05:00
Nikita Ivanov
4ff1c04c80
Minor 2022-06-11 11:52:12 +05:00
Nikita Ivanov
6900c4c9fa
Fix 2022-06-11 11:27:21 +05:00
Nikita Ivanov
773df4c35a
Fix: broken strings if parsed file is large
Use unrolled linked list instead of vector
for storing text
2022-06-11 11:14:12 +05:00
Nikita Ivanov
88a2766221
Minor 2022-06-11 03:56:17 +05:00
Nikita Ivanov
2542e530c4
Fix: zsh doesn't exit with 141 code 2022-06-10 16:38:17 +05:00
Nikita Ivanov
ca85b5c017
Fix 2022-06-10 14:00:43 +05:00
Nikita Ivanov
f850b4b116
Add remove config 2022-06-10 13:25:11 +05:00
Nikita Ivanov
a44cc26cef
Fix 2022-06-10 13:06:41 +05:00
Nikita Ivanov
a6388d3950
Add option to specify second type
(to mix mimetype and ext)
2022-06-10 11:59:12 +05:00
Nikita Ivanov
ee2746e240
Assume 1 if priority was not specified 2022-06-10 11:46:31 +05:00
Nikita Ivanov
7e524e0687
Report error if such preview does not exist 2022-06-10 11:45:54 +05:00
Nikita Ivanov
46a00e4d4e
Ignore 141 error code
Apparently it means process was terminated with SIGPIPE
and we want to ignore this error because lf sends this
signal when enough lines of input are read
2022-06-10 11:42:57 +05:00
Nikita Ivanov
f0204c359e
Add support for comments in config 2022-06-09 12:34:21 +05:00
Nikita Ivanov
0d5c32baf5
Add ability to change previews priority in config 2022-06-09 10:54:37 +05:00
Nikita Ivanov
8f2b3a403b
"Break" mimetype only once 2022-06-09 10:20:12 +05:00
Nikita Ivanov
3cfc0b2611
Minor 2022-06-09 10:02:30 +05:00
Nikita Ivanov
3a47728b7e
Move src/previews.h -> previews.h 2022-06-09 09:55:53 +05:00
Nikita Ivanov
a98d491125
Move .c and .h to src/ 2022-06-08 15:41:30 +05:00
Nikita Ivanov
2b7d50e914
Minor 2022-06-08 15:26:14 +05:00
Nikita Ivanov
bd1eaaf6e0
Minor improvements 2022-06-08 15:25:39 +05:00
Nikita Ivanov
648df6fe5c
{{{ -> {{ 2022-06-08 11:50:10 +05:00
Nikita Ivanov
d6d2ae46d9
Fix 2022-06-08 11:30:29 +05:00
Nikita Ivanov
1651ae8df9
Fixes, improvements 2022-06-08 10:39:05 +05:00
Nikita Ivanov
154a0bfd41
Print errors to stdout so lf doesn't swallow them 2022-06-08 08:43:27 +05:00
Nikita Ivanov
17f917f141
Fix 2022-06-08 08:43:18 +05:00
Nikita Ivanov
ecf560c2b8
end -> newline 2022-06-08 08:42:55 +05:00
Nikita Ivanov
9227cea15d
Fix 2022-06-08 08:39:27 +05:00
Nikita Ivanov
ab271fd493
Show line and column on parse errors 2022-06-08 08:33:52 +05:00
Nikita Ivanov
ab47acdf04
Add custom previews support 2022-06-08 05:55:42 +05:00
Nikita Ivanov
55cd11f545
Add lexer for config parsing 2022-06-07 12:49:59 +05:00
Nikita Ivanov
0ae355868d
Add vector_resize 2022-06-07 00:17:38 +05:00
Nikita Ivanov
55cb74435b
Remove char_v, proper custom function naming 2022-06-06 04:43:46 +05:00
Nikita Ivanov
38c0b56286
Add vectors 2022-06-05 23:56:48 +05:00
Nikita Ivanov
09e688d53b
Fix: write/read expect number of bytes, not len 2022-06-05 00:31:16 +05:00
Nikita Ivanov
302c77245b
Minor 2022-06-05 00:19:11 +05:00
Nikita Ivanov
98770e2842
Minor 2022-06-02 05:47:45 +05:00
Nikita Ivanov
03f4da1b46
Minor: char const *c -> const char *c 2022-06-02 04:37:43 +05:00
Nikita Ivanov
d3c5a286c8
Calculate column widths 2022-06-01 21:17:47 +05:00
Nikita Ivanov
266ed12cdb
Split prev/text.sh into 4 different previews 2022-06-01 21:09:33 +05:00
Nikita Ivanov
cc0b5d9342
Minor 2022-06-01 03:18:22 +05:00
Nikita Ivanov
f89b376e4b
Fix: wrong label 2022-06-01 03:13:21 +05:00
Nikita Ivanov
402e4aa932
Minor 2022-06-01 03:05:24 +05:00
Nikita Ivanov
0da19f7c37
Fix 2022-06-01 02:48:36 +05:00
Nikita Ivanov
b28bd33f41
Fix: reopen fifo when writer closes 2022-06-01 02:47:37 +05:00
Nikita Ivanov
6690c5048d
Fix: signal handlers don't work 2022-06-01 00:14:00 +05:00
Nikita Ivanov
a1d9f8d5d9
Minor 2022-05-31 23:50:26 +05:00
Nikita Ivanov
ba00ea1435
Fallback if $fifo is empty 2022-05-31 23:50:26 +05:00
Nikita Ivanov
e23690151c
Check cache every time and don't call ctpv from preview 2022-05-31 23:50:03 +05:00
Nikita Ivanov
5f0a224d17
Minor 2022-05-31 22:59:43 +05:00