summaryrefslogtreecommitdiff
path: root/src/drun.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-07-26 22:57:09 +0100
committerPhil Jones <philj56@gmail.com>2022-07-26 23:28:58 +0100
commitbb80769bfdf2efcbf000bf838feaee0c1b31183d (patch)
tree7ad91906bfee433bc5cb891fd65ab7a1d048150f /src/drun.h
parent508c90ba3ff7b0e25779452a3633c0e09f413adc (diff)
Add keyword matching for drun searches.
There's starting to be a fair amount of duplicated code between the drun and normal run modes. At some point in the future, it's likely to be worth combining them, such that there's only a single `struct search_item` or similar, and just handle the different modes at the start and end of execution.
Diffstat (limited to 'src/drun.h')
-rw-r--r--src/drun.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drun.h b/src/drun.h
index 2e14599..8650ae6 100644
--- a/src/drun.h
+++ b/src/drun.h
@@ -2,10 +2,12 @@
#define DRUN_H
#include "desktop_vec.h"
+#include "history.h"
#include "string_vec.h"
struct desktop_vec drun_generate(void);
struct desktop_vec drun_generate_cached(void);
+void drun_history_sort(struct desktop_vec *apps, struct history *history);
void drun_launch(const char *filename);
#endif /* DRUN_H */