Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

use ncdu/du with key "u" #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,17 @@ key() {
fi
}
;;
## run du/ncdu to get sizes
u)
[[ -e "${list[scroll]}" ]] && {
clear_screen
reset_terminal
status_line "${list[scroll]}"
type ncdu &> /dev/null && ncdu "${list[scroll]}" || du "${list[scroll]}"
setup_terminal
redraw
}
;;

# Show image in terminal.
${FFF_KEY_IMAGE:=i})
Expand Down