Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.51k stars 230 forks source link

cd on exit #911

Open shellwhale opened 1 month ago

shellwhale commented 1 month ago

Is it possible to cd on quit?

Something like :

alias br ='cd $(broot --print-pwd-as-result)' like xplr does

Canop commented 1 month ago

If you launch broot with the br function then you can cd to the chosen directory with alt-enter.

adriangalilea commented 1 month ago

I would like to simply define cd on exit without having to alt-enter.

I can easily reverse by pressing esc several times before exiting if I want to prevent this.

Alternatively, can alt-enter be redefined?

Canop commented 1 month ago

I'm sorry but I don't understand what you want. Is it simply to define another shortcut to the behavior you now have with alt-enter ? Or do you want ctrl-q to do a cd ?

adriangalilea commented 1 month ago

I'm sorry but I don't understand what you want. Is it simply to define another shortcut to the behavior you now have with alt-enter ? Or do you want ctrl-q to do a cd ?

Sorry for my wording.

I want ctrl-q to do a cd, or more specifically, I want cd to happen on exit, that is, whatever I config as exit shortcut.

And I want alt-enter to be shift-enter but that's another issue #920