adding keymap for s

pull/143/head
kyoto7250 2 years ago
parent ceda08c9ac
commit 7a32f3ac12

@ -62,6 +62,13 @@ pub fn scroll_to_top_bottom(key: &KeyConfig) -> CommandText {
)
}
pub fn sort_by_column(key: &KeyConfig) -> CommandText {
CommandText::new(
format!("Sort by column [{}]", key.sort_by_column),
CMD_GROUP_DATABASES,
)
}
pub fn expand_collapse(key: &KeyConfig) -> CommandText {
CommandText::new(
format!("Expand/Collapse [{},{}]", key.scroll_right, key.scroll_left,),

@ -101,6 +101,7 @@ pub struct KeyConfig {
pub scroll_up_multiple_lines: Key,
pub scroll_to_top: Key,
pub scroll_to_bottom: Key,
pub sort_by_column: Key,
pub extend_selection_by_one_cell_left: Key,
pub extend_selection_by_one_cell_right: Key,
pub extend_selection_by_one_cell_up: Key,
@ -140,6 +141,7 @@ impl Default for KeyConfig {
scroll_up_multiple_lines: Key::Ctrl('u'),
scroll_to_top: Key::Char('g'),
scroll_to_bottom: Key::Char('G'),
sort_by_column: Key::Char('s'),
extend_selection_by_one_cell_left: Key::Char('H'),
extend_selection_by_one_cell_right: Key::Char('L'),
extend_selection_by_one_cell_down: Key::Char('J'),

Loading…
Cancel
Save