1/// A program that prints its own source code using the bat library
2use bat::{PagingMode, PrettyPrinter, WrappingMode};
10 // The following line will be highlighted in the output:
11 .highlight(line!() as usize)
13 .wrapping_mode(WrappingMode::Character)
14 .paging_mode(PagingMode::QuitIfOneScreen)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list