2 assets::HighlightingAssets,
3 controller::Controller,
5 style::{OutputComponent, OutputComponents},
8use std::collections::HashSet;
11 let assets = HighlightingAssets::new();
12 let mut config = Config {
13 term_width: 100, // must be greater than 13 to enable style=numbers
16 output_components: OutputComponents(with_header()),
19 let mut add_file = |file: &'static str| config.files.push(InputFile::Ordinary(file));
21 add_file("Cargo.toml");
23 let print = || Controller::new(&config, &assets).run();
24 print().expect("no error");
27fn with_header() -> HashSet<OutputComponent> {
28 [OutputComponent::Header, OutputComponent::Grid]
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