fe
terminal file explorer and picker
git clone https://9o.is/git/fe.git
options.h
(545B)
1 #ifndef OPTIONS_H
2 #define OPTIONS_H OPTIONS_H
3
4 struct tty_interface;
5
6 typedef struct {
7 const char *key;
8 void (*action)(struct tty_interface *, const char *);
9 const char *argv;
10 } keybinding_t;
11
12 typedef struct {
13 unsigned int num_files;
14 const char *tty_filename;
15 const char *run;
16 const char *path;
17 int keytimeout;
18 int sort_dir;
19 int sort_icase;
20 int sort_mtime;
21 int show_hidden;
22 const keybinding_t *keybindings;
23 } options_t;
24
25 void options_parse(options_t *options, int argc, char *argv[]);
26
27 #endif