on master help sign in
Update default config file, add comment about tmux mouse scrolling support
commit859ff50766e877ac96f7350daa18d6e38fa1d30e authorsharkdp <davidpeter@web.de> dateTue 21 Apr 2020, 17:45 (7 years ago) parentce583eb
1 file changed+15−6
src/bin/bat/config.rs+15−6
src/bin/bat/config.rs+15−6
@@ -43,21 +43,30 @@ pub fn generate_config_file() -> bat::errors::Result<()> {
4343 }
4444 }
4545
46− let default_config = r#"# bat config
46+ let default_config = r#"# This is `bat`s configuration file. Each line either contains a comment or
47+# a command-line option that you want to pass to `bat` by default. You can
48+# run `bat --help` to get a list of all possible configuration options.
4749
48−# Specify desired theme (e.g. "TwoDark"). Issue `bat --list-themes` for a list of all available themes
50+# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
51+# for a list of all available themes
4952#--theme="TwoDark"
5053
51−# Enable this to use italic text on the terminal (not supported on all terminals):
54+# Enable this to use italic text on the terminal. This is not supported on all
55+# terminal emulators (like tmux, by default):
5256#--italic-text=always
5357
5458# Uncomment the following line to disable automatic paging:
5559#--paging=never
5660
57−# Use C++ syntax for .ino files
58−#--map-syntax "*.ino:C++"
61+# Uncomment the following line if you are using less version >= 551 and want to
62+# enable mouse scrolling support in `bat` when running inside tmux. This might
63+# disable text selection, unless you press shift.
64+#--pager="--RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
5965
60−# Use ".gitignore"-style highlighting for ".ignore" files
66+# Syntax mappings: map a certain filename pattern to a language.
67+# Example 1: use the C++ syntax for .ino files
68+# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
69+#--map-syntax "*.ino:C++"
6170#--map-syntax ".ignore:Git Ignore"
6271"#;
6372