From b7255563d8836ed33e5ac9c35514c01813ea33db Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 24 Jun 2021 19:11:56 +0200 Subject: [PATCH] [FileBrowser] rename file-browser to filebrowser In preperation to a overhaul of config system. --- doc/rofi.1 | 2 +- doc/rofi.1.markdown | 2 +- source/dialogs/filebrowser.c | 4 ++-- source/xrmoptions.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/rofi.1 b/doc/rofi.1 index 7f5f83b6..8df9c1f4 100644 --- a/doc/rofi.1 +++ b/doc/rofi.1 @@ -1167,7 +1167,7 @@ Message can be multi\-line. .SS File browser settings .PP -\fB\fC\-file\-browser\-directory\fR \fIdirectory\fP +\fB\fC\-filebrowser\-directory\fR \fIdirectory\fP .PP Directory the file browser starts in. diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown index 51c17642..107ef85a 100644 --- a/doc/rofi.1.markdown +++ b/doc/rofi.1.markdown @@ -698,7 +698,7 @@ Message can be multi-line. ### File browser settings -`-file-browser-directory` *directory* +`-filebrowser-directory` *directory* Directory the file browser starts in. diff --git a/source/dialogs/filebrowser.c b/source/dialogs/filebrowser.c index 5451a313..6ec2a7fb 100644 --- a/source/dialogs/filebrowser.c +++ b/source/dialogs/filebrowser.c @@ -489,8 +489,8 @@ Mode file_browser_mode = { .display_name = NULL, .abi_version = ABI_VERSION, - .name = "file-browser", - .cfg_name_key = "display-file_browser", + .name = "filebrowser", + .cfg_name_key = "display-filebrowser", ._init = file_browser_mode_init, ._get_num_entries = file_browser_mode_get_num_entries, ._result = file_browser_mode_result, diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 6b5226bc..c2bb0187 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -132,7 +132,7 @@ static XrmOption xrmOptions[] = { { xrm_String, "drun-url-launcher", { .str = &config.drun_url_launcher }, NULL, "Command to open a Desktop Entry that is a Link.", CONFIG_DEFAULT }, - { xrm_String, "file-browser-directory", { .str = &config.file_browser_directory }, NULL, + { xrm_String, "filebrowser-directory", { .str = &config.file_browser_directory }, NULL, "Directory the file browser starts in", CONFIG_DEFAULT }, { xrm_Boolean, "disable-history", { .num = &config.disable_history }, NULL,