From c57d9a2a65725dce8632bea6e539517f6b5e8f7d Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 23 Jun 2022 13:59:23 +0100 Subject: Add tofi-run symlink. Invoking 'tofi' now acts like dmenu, expecting newline-separated options on stdin. Also fix history file handling and add an option to disable it. --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index ab6aa32..81f3f2a 100644 --- a/src/config.c +++ b/src/config.c @@ -275,6 +275,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->window.entry.horizontal = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "hide-cursor") == 0) { tofi->hide_cursor = parse_bool(filename, lineno, value, &err); + } else if (strcasecmp(option, "history") == 0) { + tofi->use_history = parse_bool(filename, lineno, value, &err); } else { PARSE_ERROR(filename, lineno, "Unknown option \"%s\"\n", option); err = true; -- cgit v1.2.3