summaryrefslogtreecommitdiff
path: root/src/read_cfg.c
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 /src/read_cfg.c
parent70a15daa4367e072268f4302a68b6f73f6acf6c5 (diff)
Remove foldcase and hr options
Diffstat (limited to 'src/read_cfg.c')
-rw-r--r--src/read_cfg.c20
1 files changed, 1 insertions, 19 deletions
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