Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
leapfog opened this issue Mar 17, 2023 · 1 comment
Closed

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

leapfog opened this issue Mar 17, 2023 · 1 comment

Comments

@leapfog
Copy link
Contributor

leapfog commented Mar 17, 2023

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
Copy link
Contributor Author

leapfog commented Mar 17, 2023

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}"

dundee added a commit that referenced this issue Mar 21, 2023
* implement #229 always (try to) change directory

* fix: check err

* feat: config variable to change cwd

---------

Co-authored-by: Daniel Milde <daniel@milde.cz>
@dundee dundee closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants