summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-17 14:50:07 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-17 14:50:07 -0400
commit996d3097cfa00363f16ff972b6da347b65ead23f (patch)
treefc5729e6c8b98aee192d44b22ef4f607e8793718
parent70a15daa4367e072268f4302a68b6f73f6acf6c5 (diff)
Remove foldcase and hr options
-rw-r--r--src/draw.c2
-rw-r--r--src/include/read_cfg.h2
-rw-r--r--src/read_cfg.c20
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