Canop / broot

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

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

Closed adriangalilea closed 1 month ago

adriangalilea commented 1 month ago

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

Is this possible already?

Canop commented 1 month ago

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

adriangalilea commented 1 month 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 1 month 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