Canop / broot

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

ctrl-esc/shift-esc to go back to the first match. #919

Closed adriangalilea closed 3 months ago

adriangalilea commented 3 months ago

ctrl-esc/shift-esc to go back to the first match.

Is this possible already?

Canop commented 3 months ago

By first match, you mean the first in the list, or the best match ?

adriangalilea commented 3 months ago

By first match, you mean the first in the list, or the best match ?

First in the list, my initial location. Where I started br.

Canop commented 3 months ago

To return to where you started broot, you can now define this verb:

{
    key: ctrl-esc
    execution: ":focus {initial-root}"
}

But ctrl-esc will only work if you have a modern enough terminal and you enabled the kitty keyboard protocol (see https://dystroy.org/broot/conf_file/#keyboard-enhancements). So you'll probably need to find another key combination. You may look for one with https://github.com/Canop/print_key