From 996d3097cfa00363f16ff972b6da347b65ead23f Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sat, 17 Aug 2024 14:50:07 -0400 Subject: Remove foldcase and hr options --- src/draw.c | 2 +- src/include/read_cfg.h | 2 -- src/read_cfg.c | 20 +------------------- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/draw.c b/src/draw.c index 53185cb..4dd5d75 100644 --- a/src/draw.c +++ b/src/draw.c @@ -520,7 +520,7 @@ void trav_col(int new_i){ int locateChar(char input){ ENTRY **entries = get_gentries(g[g_hover]); int location = (true_hover ? e_hover[g_hover] : g_hover); - bool fold_case = get_case_sensitivity(); + bool fold_case = true; char first_char; int i; diff --git a/src/include/read_cfg.h b/src/include/read_cfg.h index 29a36e7..1337e32 100644 --- a/src/include/read_cfg.h +++ b/src/include/read_cfg.h @@ -8,8 +8,6 @@ #define BUF_LEN 1024 GROUP **cfg_interp(char *path, int *group_count); -bool get_sort(); -bool get_case_sensitivity(); void refer_to_doc(); //functions that differ by os diff --git a/src/read_cfg.c b/src/read_cfg.c index f29fe88..3b8d24a 100644 --- a/src/read_cfg.c +++ b/src/read_cfg.c @@ -35,12 +35,6 @@ void stack_debug(lua_State *L); // TODO allow specifying whether to sort groups or entries (or both, or none) bool sort = true; -//set to true to automatically try to create a human readable name for an entry -bool hr = false; - -//turn foldCase (insensitive case searching) on or off; On by default -bool fold_case = true; - //return false if invalid path GROUP **cfg_interp(char *path, int *group_count){ FILE *fp; @@ -108,14 +102,6 @@ GROUP **cfg_interp(char *path, int *group_count){ return g; } -bool get_sort(){ - return sort; -} - -bool get_case_sensitivity(){ - return fold_case; -} - void refer_to_doc(){ printf("Refer to documentation on how to create terminal-media-launcher config file\n"); return; @@ -123,18 +109,14 @@ void refer_to_doc(){ void get_settings(lua_State *L, int table_stack_index) { bool *setting_vars[] = { - &hr, - &fold_case, &sort }; char *setting_strings[] = { - "autoAlias", - "foldCase", "sort" }; - int count = 3; + int count = 1; int i; // looking at table Settings -- cgit