dundee / gdu

Fast disk usage analyzer with console interface written in Go
MIT License
3.81k stars 138 forks source link

tiny enhancement: always (try to) change directory #229

Closed leapfog closed 1 year ago

leapfog commented 1 year ago

tmux can open new panes (or windows) in the current window's current working directory.

So when running gdu inside tmux (and gdu keeping its cwd in sync with what is shown, and fail silently if impossible) then tmux would be able to open a new pane there. That would be a more powerful alternative to suspending gdu (as the user would have access to both).

While there wouldn't be a noticable difference when not using gdu inside tmux.

leapfog commented 1 year ago

That could be used with tmux like this:

bind-key "C" new-window -c "#{pane_current_path}"
bind-key "_" split-window -c "#{pane_current_path}"