chore(ui/tree): bind 'o' to Toggle

pull/9/head
wongjiahau 1 year ago
parent 7b63fda7d2
commit f9ff01dd9c

@ -42,9 +42,9 @@ New:
- [x] fix(explorer/preview): panic if not tall enough
- [x] explorer(preview): content not sorted
- [x] add integration test for Explorer
- [x] bind "o" to open/close file/folder
- [] search highlight matching word
- [] Error didn't clear
- [] bind "o" to open/close file/folder
- [] should preview be there by default?
- [] Fix panic bugs (see github comments)
- [] Sticky ancestors

@ -509,6 +509,7 @@ impl<T: TreeViewItem> TreeView<T> {
pub fn tree_view_help() -> Vec<(&'static str, &'static str)> {
vec![
("o, Enter", "Open/Close"),
("j, down", "Down"),
("k, up", "Up"),
("h, left", "Go to parent"),
@ -988,7 +989,7 @@ impl<T: TreeViewItem + Clone> TreeView<T> {
},
shift!('H') => self.move_left(1),
shift!('L') => self.move_right(1),
key!(Enter) => self.on_enter(cx, params, self.selected, filter),
key!(Enter) | key!('o') => self.on_enter(cx, params, self.selected, filter),
ctrl!('d') => self.move_down_half_page(),
ctrl!('u') => self.move_up_half_page(),
key!('g') => {

Loading…
Cancel
Save