diff --git a/docs/content/configuration/config-file/flags.md b/docs/content/configuration/config-file/flags.md index ae54425d..3143b73b 100644 --- a/docs/content/configuration/config-file/flags.md +++ b/docs/content/configuration/config-file/flags.md @@ -39,7 +39,7 @@ each time: | `process_memory_as_value` | Boolean | Deprecated - use `processes.default_memory_value`. Defaults to showing process memory usage by value. | | `tree` | Boolean | Deprecated - use `processes.default_tree`. Defaults to showing the process widget in tree mode. | | `show_table_scroll_position` | Boolean | Shows the scroll position tracker in table widgets. | -| `show_table_scroll_bar` | Boolean | Shows a scroll bar on the right edge of table widgets. | +| `show_table_scroll_bar` | Boolean | Shows a scroll bar on the right edge of table widgets. Enabled by default. | | `process_command` | Boolean | Deprecated - use `processes.process_command`. Show processes as their commands by default. | | `disable_advanced_kill` | Boolean | Deprecated - use `processes.disable_advanced_kill`. Disable being able to send signals to processes on supported Unix-like systems. Only available on Linux, macOS, and FreeBSD. | | `read_only` | Boolean | Prevents performing any actions that affect the system (e.g. stopping processes). | diff --git a/sample_configs/default_config.toml b/sample_configs/default_config.toml index 4b0e4177..84dfd910 100644 --- a/sample_configs/default_config.toml +++ b/sample_configs/default_config.toml @@ -103,8 +103,8 @@ # Shows an indicator in table widgets tracking where in the list you are. #show_table_scroll_position = false -# Show a scroll bar on the right edge of table widgets. -#show_table_scroll_bar = false +# Show a scroll bar on the right edge of table widgets. Enabled by default. +#show_table_scroll_bar = true # Deprecated - use processes.process_command. # Show processes as their commands by default in the process widget. diff --git a/src/constants.rs b/src/constants.rs index b1ddee41..056fcfc1 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -352,8 +352,8 @@ pub(crate) const CONFIG_TEXT: &str = r#"# This is a default config file for bott # Shows an indicator in table widgets tracking where in the list you are. #show_table_scroll_position = false -# Show a scroll bar on the right edge of table widgets. -#show_table_scroll_bar = false +# Show a scroll bar on the right edge of table widgets. Enabled by default. +#show_table_scroll_bar = true # Deprecated - use processes.process_command. # Show processes as their commands by default in the process widget. diff --git a/src/options.rs b/src/options.rs index c5442041..71c5837b 100644 --- a/src/options.rs +++ b/src/options.rs @@ -501,7 +501,7 @@ pub(crate) fn init_app(args: BottomArgs, config: Config) -> Result<(App, BottomL args.general, config ), - show_table_scroll_bar: config_or!(config, flags.show_table_scroll_bar, false), + show_table_scroll_bar: config_or!(config, flags.show_table_scroll_bar, true), #[cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd"))] is_advanced_kill, is_read_only,