forked from NikitaIvanovV/ctpv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
previews.h
117 lines (99 loc) · 8.42 KB
/
previews.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#include <stdlib.h>
#include <limits.h>
#include "src/utils.h"
#include "src/preview.h"
#include "gen/previews.h"
/*
* This file is supposed to be included in src/ctpv.c
*/
#define PNAME(n) prev_scr_##n##_sh
#define PR(e, t, s, n, a) { #n, e, t, s, PNAME(n), 0, 0, a, LEN(PNAME(n)) }
Preview b_previews[] = {
PR(NULL, NULL, NULL, any, PREV_ATTR_NONE),
PR("md", NULL, NULL, mdcat, PREV_ATTR_NONE),
PR("torrent", NULL, NULL, torrent, PREV_ATTR_NONE),
PR("ods", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("fods", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("xls", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("xlsx", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("csv", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("odt", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("fodt", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("doc", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("docx", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("odp", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("fodp", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("ppt", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR("pptx", NULL, NULL, libreoffice, PREV_ATTR_NONE),
PR(NULL, "text", NULL, bat, PREV_ATTR_NONE),
PR(NULL, "text", NULL, highlight, PREV_ATTR_NONE),
PR(NULL, "text", NULL, source_highlight, PREV_ATTR_NONE),
PR(NULL, "text", NULL, cat, PREV_ATTR_NONE),
PR(NULL, "image", NULL, image, PREV_ATTR_NONE),
PR(NULL, "image", "svg+xml", svg, PREV_ATTR_NONE),
PR(NULL, "video", NULL, video, PREV_ATTR_NONE),
PR(NULL, "audio", NULL, audio, PREV_ATTR_NONE),
PR(NULL, "application", "pdf", pdf, PREV_ATTR_NONE),
PR(NULL, "application", "json", jq, PREV_ATTR_NONE),
PR(NULL, "inode", "directory", ls, PREV_ATTR_NONE),
PR(NULL, "inode", "symlink", symlink, PREV_ATTR_NONE),
PR(NULL, "text", "html", elinks, PREV_ATTR_NONE),
PR(NULL, "text", "html", lynx, PREV_ATTR_NONE),
PR(NULL, "text", "html", w3m, PREV_ATTR_NONE),
PR(NULL, "text", "x-diff", delta, PREV_ATTR_NONE),
PR(NULL, "text", "x-patch", delta, PREV_ATTR_NONE),
PR(NULL, "text", "x-diff", diff_so_fancy, PREV_ATTR_NONE),
PR(NULL, "text", "x-patch", diff_so_fancy, PREV_ATTR_NONE),
PR(NULL, "text", "x-diff", colordiff, PREV_ATTR_NONE),
PR(NULL, "text", "x-patch", colordiff, PREV_ATTR_NONE),
PR(NULL, "font", NULL, font, PREV_ATTR_NONE),
PR("tar.gz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.gz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.bz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tbz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.bz2", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tbz2", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.Z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tZ", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.lzo", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tzo", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.lz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tlz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.xz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("txz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar.7z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("t7z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("tar", NULL, NULL, atool, PREV_ATTR_NONE),
PR("zip", NULL, NULL, atool, PREV_ATTR_NONE),
PR("jar", NULL, NULL, atool, PREV_ATTR_NONE),
PR("war", NULL, NULL, atool, PREV_ATTR_NONE),
PR("rar", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lha", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lzh", NULL, NULL, atool, PREV_ATTR_NONE),
PR("7z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("alz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("ace", NULL, NULL, atool, PREV_ATTR_NONE),
PR("a", NULL, NULL, atool, PREV_ATTR_NONE),
PR("arj", NULL, NULL, atool, PREV_ATTR_NONE),
PR("arc", NULL, NULL, atool, PREV_ATTR_NONE),
PR("rpm", NULL, NULL, atool, PREV_ATTR_NONE),
PR("deb", NULL, NULL, atool, PREV_ATTR_NONE),
PR("cab", NULL, NULL, atool, PREV_ATTR_NONE),
PR("gz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("bz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("bz2", NULL, NULL, atool, PREV_ATTR_NONE),
PR("Z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lzma", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lzo", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("xz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("rz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("lrz", NULL, NULL, atool, PREV_ATTR_NONE),
PR("7z", NULL, NULL, atool, PREV_ATTR_NONE),
PR("cpio", NULL, NULL, atool, PREV_ATTR_NONE),
PR("gpg", NULL, NULL, gpg, PREV_ATTR_EXT_SHORT),
};
/* vim: set nowrap: */