mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	feat: ✨ add context support to line-range syntax
docs(long-help.txt): 📚 add examples for N::C and N:M:C context syntax docs(clap_app.rs): 📚 update CLI help text with context syntax examples feat(line_range.rs): ✨ implement N::C and N:M:C parsing and add tests
This commit is contained in:
		| @@ -194,6 +194,8 @@ Options: | ||||
|             '--line-range 40:' prints lines 40 to the end of the file | ||||
|             '--line-range 40' only prints line 40 | ||||
|             '--line-range 30:+10' prints lines 30 to 40 | ||||
|             '--line-range 35::5' prints lines 30 to 40 (line 35 with 5 lines of context) | ||||
|             '--line-range 30:40:2' prints lines 28 to 42 (range 30-40 with 2 lines of context) | ||||
|  | ||||
|   -L, --list-languages | ||||
|           Display a list of supported languages for syntax highlighting. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user