mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	fix: config fixes for Windows
- Update the default config file to use `more` instead of `less` as the default pager, in order to support Windows out-of-the-box. (#655, #665). - Use `terminal` Chroma formatter (rather than `terminal16m`) in order to accommodate less capable terminal emulators like `cmd.exe` by default. Similarly, default to `colorize: false` in configs (changed from `true`) (#665). - Comment out default `style` in order to avoid printing ANSI color codes into terminals without color support (#665) - Attempt to intelligently choose a default editor, rather than rely on a hard-coded `vim` in the configs. This should make it easier to use `cheat` immediately without needing to specify configs. It should also improve `cheat`'s Windows compatibility. (#665)
This commit is contained in:
		@@ -1,21 +1,22 @@
 | 
			
		||||
---
 | 
			
		||||
# The editor to use with 'cheat -e <sheet>'. Defaults to $EDITOR or $VISUAL.
 | 
			
		||||
editor: vim
 | 
			
		||||
# editor: vim
 | 
			
		||||
 | 
			
		||||
# Should 'cheat' always colorize output?
 | 
			
		||||
colorize: true
 | 
			
		||||
colorize: false
 | 
			
		||||
 | 
			
		||||
# Which 'chroma' colorscheme should be applied to the output?
 | 
			
		||||
# Options are available here:
 | 
			
		||||
#   https://github.com/alecthomas/chroma/tree/master/styles
 | 
			
		||||
style: monokai
 | 
			
		||||
# style: monokai
 | 
			
		||||
 | 
			
		||||
# Which 'chroma' "formatter" should be applied?
 | 
			
		||||
# One of: "terminal", "terminal256", "terminal16m"
 | 
			
		||||
formatter: terminal16m
 | 
			
		||||
formatter: terminal
 | 
			
		||||
 | 
			
		||||
# Through which pager should output be piped? (Unset this key for no pager.)
 | 
			
		||||
pager: less -FRX
 | 
			
		||||
pager: more
 | 
			
		||||
# pager: less -FRX # <- recommended where available
 | 
			
		||||
 | 
			
		||||
# The paths at which cheatsheets are available. Tags associated with a cheatpath
 | 
			
		||||
# are automatically attached to all cheatsheets residing on that path.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user