on master help sign in
Update default config file, add comment about tmux mouse scrolling support
859ff50sharkdp
src/bin/bat/config.rs+15−6
@@ -43,21 +43,30 @@ pub fn generate_config_file() -> bat::errors::Result<()> {
43 }
43 }
44 }
44 }
45
45
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.
47
49
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
49#--theme="TwoDark"
52#--theme="TwoDark"
50
53
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):
52#--italic-text=always
56#--italic-text=always
53
57
54# Uncomment the following line to disable automatic paging:
58# Uncomment the following line to disable automatic paging:
55#--paging=never
59#--paging=never
56
60
57−# Use C++ syntax for .ino files
61+# Uncomment the following line if you are using less version >= 551 and want to
58−#--map-syntax "*.ino:C++"
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"
59
65
66+# Syntax mappings: map a certain filename pattern to a language.
67+# Example 1: use the C++ syntax for .ino files
60−# Use ".gitignore"-style highlighting for ".ignore" files
68+# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
69+#--map-syntax "*.ino:C++"
61#--map-syntax ".ignore:Git Ignore"
70#--map-syntax ".ignore:Git Ignore"
62"#;
71"#;
63
72