mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 17:24:45 +00:00
feat(analyze): enable RIGHT as enter and LEFT as back in both volume and drill views
This commit is contained in:
@@ -1457,7 +1457,7 @@ show_volumes_overview() {
|
|||||||
"DOWN")
|
"DOWN")
|
||||||
((cursor < total_items - 1)) && ((cursor++))
|
((cursor < total_items - 1)) && ((cursor++))
|
||||||
;;
|
;;
|
||||||
"ENTER")
|
"ENTER"|"RIGHT")
|
||||||
# Get selected path
|
# Get selected path
|
||||||
local selected_path=""
|
local selected_path=""
|
||||||
idx=0
|
idx=0
|
||||||
@@ -1644,7 +1644,7 @@ interactive_drill_down() {
|
|||||||
local max_cursor=$(( total_items < max_show ? total_items - 1 : max_show - 1 ))
|
local max_cursor=$(( total_items < max_show ? total_items - 1 : max_show - 1 ))
|
||||||
((cursor < max_cursor)) && ((cursor++))
|
((cursor < max_cursor)) && ((cursor++))
|
||||||
;;
|
;;
|
||||||
"ENTER")
|
"ENTER"|"RIGHT")
|
||||||
# Enter selected item (only if it's a directory)
|
# Enter selected item (only if it's a directory)
|
||||||
if [[ $cursor -lt ${#items[@]} ]]; then
|
if [[ $cursor -lt ${#items[@]} ]]; then
|
||||||
local selected="${items[$cursor]}"
|
local selected="${items[$cursor]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user