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

Define hardcoded shortcuts inside verbs.hjson #920

Open
adriangalilea opened this issue Jul 30, 2024 · 2 comments
Open

Define hardcoded shortcuts inside verbs.hjson #920

adriangalilea opened this issue Jul 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@adriangalilea
Copy link

adriangalilea commented Jul 30, 2024

It would be great to have the default shortcuts on verbs.hjson so we can modify them.

Is there any reason not to?

I mean things like alt-enter so we can choose shift-enter for instance.

Even things like esc tho I think it may be a bit trickier due it's logic I would like to alter the esc logic to:

When I press esc from the first match(initial location) I would like to actually trigger exit. (perhaps this needs to be it's own github issue.)

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

Canop commented Jul 30, 2024

Is there any reason not to?

The application is always changing, features, and shortcuts, are always added, but the config file isn't changed everytime.

I mean things like alt-enter so we can choose shift-enter for instance.

The doc explains how you can define a new binding for this action, and other ones. See https://dystroy.org/broot/conf_verbs/

When I press esc from the first match(initial location) I would like to actually trigger exit. (perhaps this needs to be it's own github issue.)

There's a specific setting for that: https://dystroy.org/broot/conf_file/#quit-on-last-cancel

@adriangalilea
Copy link
Author

Is there any reason not to?

The application is always changing, features, and shortcuts, are always added, but the config file isn't changed everytime.

Haven't thought of that, good point.

I mean things like alt-enter so we can choose shift-enter for instance.

The doc explains how you can define a new binding for this action, and other ones. See https://dystroy.org/broot/conf_verbs/

Problem is, that I can't use alt-enter, I surely can map another keybinding for that action, but the help line on broot will forever read "alt-enter to open and quit" which is not valid for me, so it may confuse me if I use broot some time in the future.

Can't think of a clean solution then considering what you just told me.

When I press esc from the first match(initial location) I would like to actually trigger exit. (perhaps this needs to be it's own github issue.)

There's a specific setting for that: https://dystroy.org/broot/conf_file/#quit-on-last-cancel

Added to the conf, thanks.

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

2 participants