ctpv/previews.h

31 lines
1.0 KiB
C
Raw Normal View History

2022-05-22 09:55:04 +02:00
#include <stdlib.h>
#include <limits.h>
2022-05-22 09:55:04 +02:00
#include "utils.h"
2022-05-22 09:55:04 +02:00
#include "preview.h"
#include "gen/prev/scripts.h"
2022-05-22 09:55:04 +02:00
/*
* This file is supposed to be included in ctpv.c
*/
#define PNAME(n) prev_scr_##n##_sh
#define PP(e, t, s, n, p) { #n, e, t, s, PNAME(n), p, 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[] = {
PP(NULL, NULL, NULL, wrapper, INT_MAX),
PR(NULL, "text", NULL, bat),
PR(NULL, "text", NULL, highlight),
PR(NULL, "text", NULL, source_highlight),
PR(NULL, "text", NULL, cat),
PR(NULL, NULL, NULL, any),
PR("md", NULL, NULL, markdown),
PR(NULL, "application", "json", json),
2022-05-25 23:57:50 +02:00
PR(NULL, "image", NULL, image),
2022-05-26 01:48:27 +02:00
PR(NULL, "video", NULL, video),
PR(NULL, "application", "pdf", pdf),
2022-05-22 09:55:04 +02:00
};
/* vim: set nowrap: */