2023-02-26 05:13:40 +01:00
|
|
|
typedef union {
|
2023-03-31 12:42:15 +02:00
|
|
|
int i; // integer
|
|
|
|
unsigned int ui; // unsigned int
|
|
|
|
float f; // float
|
|
|
|
const void *v; // void
|
2023-04-23 20:08:34 +02:00
|
|
|
const char *c; // char
|
2023-02-26 05:13:40 +01:00
|
|
|
} Arg;
|
2023-03-06 21:03:06 +01:00
|
|
|
|
2023-03-16 16:54:36 +01:00
|
|
|
// declare keybind functions
|
2023-03-20 18:05:53 +01:00
|
|
|
static void moveup(const Arg *arg);
|
|
|
|
static void movedown(const Arg *arg);
|
|
|
|
static void moveleft(const Arg *arg);
|
|
|
|
static void moveright(const Arg *arg);
|
2023-03-06 21:03:06 +01:00
|
|
|
static void moveend(const Arg *arg);
|
|
|
|
static void movestart(const Arg *arg);
|
|
|
|
static void movenext(const Arg *arg);
|
|
|
|
static void moveprev(const Arg *arg);
|
|
|
|
static void paste(const Arg *arg);
|
|
|
|
static void restoresel(const Arg *arg);
|
|
|
|
static void clear(const Arg *arg);
|
2023-03-26 20:34:41 +02:00
|
|
|
static void clearins(const Arg *arg);
|
2023-03-06 21:03:06 +01:00
|
|
|
static void viewhist(const Arg *arg);
|
|
|
|
static void moveword(const Arg *arg);
|
2023-03-20 12:14:12 +01:00
|
|
|
static void deleteword(const Arg *arg);
|
2023-03-20 11:59:04 +01:00
|
|
|
static void movecursor(const Arg *arg);
|
2023-03-06 21:03:06 +01:00
|
|
|
static void navhistory(const Arg *arg);
|
|
|
|
static void backspace(const Arg *arg);
|
|
|
|
static void selectitem(const Arg *arg);
|
|
|
|
static void quit(const Arg *arg);
|
|
|
|
static void complete(const Arg *arg);
|
|
|
|
static void savehistory(char *input);
|
|
|
|
static void setimgsize(const Arg *arg);
|
|
|
|
static void toggleimg(const Arg *arg);
|
|
|
|
static void defaultimg(const Arg *arg);
|
|
|
|
static void rotateimg(const Arg *arg);
|
|
|
|
static void flipimg(const Arg *arg);
|
2023-03-08 19:41:59 +01:00
|
|
|
static void setimgpos(const Arg *arg);
|
2023-03-08 20:13:39 +01:00
|
|
|
static void setimggaps(const Arg *arg);
|
2023-03-13 22:45:04 +01:00
|
|
|
static void setlines(const Arg *arg);
|
|
|
|
static void setcolumns(const Arg *arg);
|
2023-04-21 09:49:38 +02:00
|
|
|
static void spawn(const Arg *arg);
|
2023-04-21 12:10:02 +02:00
|
|
|
static void togglehighlight(const Arg *arg);
|