2022-05-22 09:55:04 +02:00
|
|
|
#include <stdlib.h>
|
2022-05-23 20:45:35 +02:00
|
|
|
#include <limits.h>
|
2022-05-22 09:55:04 +02:00
|
|
|
|
2022-06-09 06:55:53 +02:00
|
|
|
#include "src/utils.h"
|
|
|
|
#include "src/preview.h"
|
2022-05-28 19:33:18 +02:00
|
|
|
#include "gen/prev/scripts.h"
|
2022-05-22 09:55:04 +02:00
|
|
|
|
|
|
|
/*
|
2022-06-09 06:55:53 +02:00
|
|
|
* This file is supposed to be included in src/ctpv.c
|
2022-05-22 09:55:04 +02:00
|
|
|
*/
|
|
|
|
|
2022-06-09 07:54:37 +02:00
|
|
|
#define PNAME(n) prev_scr_##n##_sh
|
|
|
|
#define PP(e, t, s, n, o) { #n, e, t, s, PNAME(n), o, 0, LEN(PNAME(n)) }
|
|
|
|
#define PR(e, t, s, n) PP(e, t, s, n, 0)
|
2022-05-22 09:55:04 +02:00
|
|
|
|
2022-06-08 01:27:30 +02:00
|
|
|
Preview b_previews[] = {
|
2022-05-23 20:45:35 +02:00
|
|
|
PP(NULL, NULL, NULL, wrapper, INT_MAX),
|
2022-06-10 13:46:38 +02:00
|
|
|
PR(NULL, NULL, NULL, any),
|
|
|
|
|
2022-06-12 09:57:20 +02:00
|
|
|
PR("md", NULL, NULL, mdcat),
|
2022-06-12 19:27:24 +02:00
|
|
|
PR("torrent", NULL, NULL, torrent),
|
2022-06-17 18:06:31 +02:00
|
|
|
PR("odt", NULL, NULL, odt),
|
2022-06-10 13:46:38 +02:00
|
|
|
|
2022-06-01 18:09:33 +02:00
|
|
|
PR(NULL, "text", NULL, bat),
|
|
|
|
PR(NULL, "text", NULL, highlight),
|
|
|
|
PR(NULL, "text", NULL, source_highlight),
|
|
|
|
PR(NULL, "text", NULL, cat),
|
2022-06-10 13:46:38 +02:00
|
|
|
|
2022-06-12 09:57:20 +02:00
|
|
|
PR(NULL, "image", NULL, ueberzug),
|
2022-05-26 01:48:27 +02:00
|
|
|
PR(NULL, "video", NULL, video),
|
2022-06-10 13:46:38 +02:00
|
|
|
|
2022-05-26 01:48:27 +02:00
|
|
|
PR(NULL, "application", "pdf", pdf),
|
2022-06-12 09:57:20 +02:00
|
|
|
PR(NULL, "application", "json", jq),
|
2022-06-12 19:27:24 +02:00
|
|
|
PR(NULL, "inode", "directory", ls),
|
|
|
|
|
|
|
|
PR(NULL, "text", "html", w3m),
|
|
|
|
PR(NULL, "text", "html", lynx),
|
|
|
|
PR(NULL, "text", "html", elinks),
|
|
|
|
|
|
|
|
PR(NULL, "text", "x-diff", delta),
|
|
|
|
PR(NULL, "text", "x-patch", delta),
|
|
|
|
PR(NULL, "text", "x-diff", diff_so_fancy),
|
|
|
|
PR(NULL, "text", "x-patch", diff_so_fancy),
|
|
|
|
PR(NULL, "text", "x-diff", colordiff),
|
|
|
|
PR(NULL, "text", "x-patch", colordiff),
|
2022-06-10 13:46:38 +02:00
|
|
|
|
2022-05-22 09:55:04 +02:00
|
|
|
};
|
2022-05-28 19:33:18 +02:00
|
|
|
|
|
|
|
/* vim: set nowrap: */
|