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

cd on exit #911

Open
shellwhale opened this issue Jul 22, 2024 · 4 comments
Open

cd on exit #911

shellwhale opened this issue Jul 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@shellwhale
Copy link

shellwhale commented Jul 22, 2024

Is it possible to cd on quit?

Something like :

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

@shellwhale shellwhale added the enhancement New feature or request label Jul 22, 2024
@Canop
Copy link
Owner

Canop commented Jul 22, 2024

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

@adriangalilea
Copy link

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
Copy link
Owner

Canop commented Jul 30, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants