Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thiel committed Jun 4, 2019
1 parent 09373b2 commit c8914ab
Showing 1 changed file with 31 additions and 20 deletions.
51 changes: 31 additions & 20 deletions src/interactive/widgets/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,42 @@ impl Widget for HelpPane {
Style::default(),
));
};

title("Keys for pane control");
hotkey(
"q",
"close the current pain. Closes the application if no pane is open.",
);
hotkey("<tab>", "Cycle between all open panes");
hotkey("?", "Show the help pane");
spacer();
{
hotkey(
"q",
"close the current pain. Closes the application if no pane is open.",
);
hotkey("<tab>", "Cycle between all open panes");
hotkey("?", "Show the help pane");
spacer();
}
title("Keys for Navigation");
hotkey("j", "move down an entry");
hotkey("k", "move up an entry");
hotkey("o", "descent into the selected directory");
hotkey("u", "ascent one level into the parent directory");
hotkey("Ctrl + d", "move down 10 entries at once");
hotkey("Ctrl + u", "move up 10 entries at once");
spacer();
{
hotkey("j", "move down an entry");
hotkey("k", "move up an entry");
hotkey("o", "descent into the selected directory");
hotkey("u", "ascent one level into the parent directory");
hotkey("Ctrl + d", "move down 10 entries at once");
hotkey("Ctrl + u", "move up 10 entries at once");
spacer();
}
title("Keys for sorting");
hotkey("s", "toggle sort by size ascending/descending");
spacer();
{
hotkey("s", "toggle sort by size ascending/descending");
spacer();
}
title("Keys for entry operations");
hotkey("Shift + o", "Open the entry with the associated program");
spacer();
{
hotkey("Shift + o", "Open the entry with the associated program");
spacer();
}
title("Keys for application control");
hotkey("Ctrl + c", "close the application. No questions asked!");
spacer();
{
hotkey("Ctrl + c", "close the application. No questions asked!");
spacer();
}
(lines.into_inner(), num_lines.get())
};

Expand Down

0 comments on commit c8914ab

Please sign in to comment.