diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-12-03 18:01:18 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-12-03 18:01:18 +0100 |
commit | c0f9c633d465cb9d661bb604ef1ab61cf98c310b (patch) | |
tree | 19d98efe677a4cf8dc2ca071f960945c9d09084c | |
parent | 849db3c432f4a5373cd6397bd48b0c5df4ddc5eb (diff) |
Remove cycle option.
Is part of the listview theme option now.
-rw-r--r-- | config/config.c | 2 | ||||
-rw-r--r-- | doc/rofi.1.markdown | 4 | ||||
-rw-r--r-- | include/settings.h | 2 | ||||
-rw-r--r-- | source/widgets/listview.c | 4 | ||||
-rw-r--r-- | source/xrmoptions.c | 2 |
5 files changed, 2 insertions, 12 deletions
diff --git a/config/config.c b/config/config.c index df9ef66f..1404b7e0 100644 --- a/config/config.c +++ b/config/config.c @@ -66,8 +66,6 @@ Settings config = { .sorting_method = "normal", /** Case sensitivity of the search */ .case_sensitive = FALSE, - /** Cycle through in the element list */ - .cycle = TRUE, /** Height of an element in #chars */ .element_height = 1, /** auto select */ diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown index 45af224b..e5f98aaf 100644 --- a/doc/rofi.1.markdown +++ b/doc/rofi.1.markdown @@ -165,10 +165,6 @@ For that case '#' can be used as an separator. Start in case sensitive mode. This option can be changed at run-time using the `-kb-toggle-case-sensitivity` key binding. -`-cycle` - -Cycle through the result list. Default is 'true'. - `-filter` *filter* Filter the list by setting text in input bar to *filter* diff --git a/include/settings.h b/include/settings.h index eeb96589..babf2f86 100644 --- a/include/settings.h +++ b/include/settings.h @@ -104,8 +104,6 @@ typedef struct /** Search case sensitivity */ unsigned int case_sensitive; - /** Cycle through in the element list */ - unsigned int cycle; /** Height of an element in number of rows */ int element_height; /** Lazy filter limit. */ diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 98f2873c..53f92eea 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -679,8 +679,8 @@ listview *listview_create ( widget *parent, const char *name, listview_update_ca lv->fixed_num_lines = rofi_theme_get_boolean ( WIDGET ( lv ), "fixed-height", TRUE ); lv->dynamic = rofi_theme_get_boolean ( WIDGET ( lv ), "dynamic", TRUE ); lv->reverse = rofi_theme_get_boolean ( WIDGET ( lv ), "reverse", reverse ); - lv->cycle = rofi_theme_get_boolean ( WIDGET ( lv ), "cycle", config.cycle ); - lv->fixed_columns = rofi_theme_get_boolean ( WIDGET ( lv ), "fixed-columns", FALSE ); + lv->cycle = rofi_theme_get_boolean ( WIDGET ( lv ), "cycle", FALSE ); + lv->fixed_columns = rofi_theme_get_boolean ( WIDGET ( lv ), "fixed-columns", FALSE ); lv->type = rofi_theme_get_orientation ( WIDGET ( lv ), "layout", ROFI_ORIENTATION_VERTICAL ); if ( lv->type == LISTVIEW ) { diff --git a/source/xrmoptions.c b/source/xrmoptions.c index e7e2bc79..48bcd057 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -124,8 +124,6 @@ static XrmOption xrmOptions[] = { "Choose the strategy used for sorting: normal (levenshtein) or fzf.", CONFIG_DEFAULT }, { xrm_Boolean, "case-sensitive", { .num = &config.case_sensitive }, NULL, "Set case-sensitivity", CONFIG_DEFAULT }, - { xrm_Boolean, "cycle", { .num = &config.cycle }, NULL, - "Cycle through the results list", CONFIG_DEFAULT }, { xrm_SNumber, "eh", { .snum = &config.element_height }, NULL, "Row height (in chars)", CONFIG_DEFAULT }, { xrm_Boolean, "auto-select", { .num = &config.auto_select }, NULL, |