diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-23 13:59:23 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-23 13:59:23 +0100 |
commit | c57d9a2a65725dce8632bea6e539517f6b5e8f7d (patch) | |
tree | c18011302444bebaa9d3ca56549d22ca70507469 /src/config.c | |
parent | 8ee3f74a3267ded3444c6f68b0551af0ba09d943 (diff) |
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.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |