Skip to content

Commit

Permalink
restore lost "description" column in help screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Canop committed Feb 23, 2019
1 parent c82e474 commit a4d3ed5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/help_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl AppState for HelpState {
""
}
});
tbl.add_col("description", &|verb: &Verb| &verb.description);
tbl.write(&con.verb_store.verbs, &mut text);
text.md("");
text.md(&format!(
Expand Down
2 changes: 1 addition & 1 deletion src/skin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Skin! {
char_match: Green, Reset
code: Reset, AnsiValue::grayscale(2)
directory: LightBlue, Reset
exe: Cyan, Reset
exe: LightCyan, Reset
file: White, Reset
file_error: Red, Reset
flag_label: AnsiValue::grayscale(12), AnsiValue::grayscale(1)
Expand Down
4 changes: 2 additions & 2 deletions src/verbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl VerbStore {
"cd".to_string(),
None, // no real need for a shortcut as it's mapped to alt-enter
"cd {directory}".to_string(),
"change directory and quit (mapped to `<alt><enter>` in tree)".to_string(),
"change directory and quit (mapped to `<alt><enter>`)".to_string(),
true, // needs to be launched from the parent shell
));
self.verbs.push(Verb::create_built_in(
Expand All @@ -198,7 +198,7 @@ impl VerbStore {
self.verbs.push(Verb::create_built_in(
"open",
None,
"open a file according to OS settings (mapped to `<enter>` in tree)",
"open file according to OS settings (mapped to `<enter>`)",
));
self.verbs.push(Verb::create_built_in(
"parent",
Expand Down

0 comments on commit a4d3ed5

Please sign in to comment.