broot icon indicating copy to clipboard operation
broot copied to clipboard

cd on exit

Open shellwhale opened this issue 1 year ago • 4 comments

Is it possible to cd on quit?

Something like :

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

shellwhale avatar Jul 22 '24 08:07 shellwhale

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

Canop avatar Jul 22 '24 13:07 Canop

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?

adriangalilea avatar Jul 30 '24 12:07 adriangalilea

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 ?

Canop avatar Jul 30 '24 12:07 Canop

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

adriangalilea avatar Jul 30 '24 13:07 adriangalilea