broot icon indicating copy to clipboard operation
broot copied to clipboard

Control broot's searching behavior

Open amosbird opened this issue 4 years ago • 3 comments

Did a discussion occur before?

I cannot find relate discussions in both issue list and in Broot chat room.

Is your feature request related to a problem? Please describe.

I'd like to configure broot to limit the dir searching with max depth 2, and it should only show me directories or symlinks to directories.

Describe the solution you'd like

Make the searching behavior configurable.

Describe alternatives you've considered

I don't know what would be the alternative way.

Additional context

Btw, is it possible to configure the enter key to act as alt-enter?

amosbird avatar Jun 20 '21 03:06 amosbird

Btw, is it possible to configure the enter key to act as alt-enter?

@amosbird Try this:

        ###############################################################
        # Verbs and shortcuts
        # You can define your own commands which would be applied to
        # the selection.
        # You'll also find below verbs that you can customize or enable.
        verbs: [
                {
                        key: left
                        execution: ":parent"
                }
                {
                        key: right
                        execution: ":focus"
                }
                {
                        key: enter
                        execution: ":open_leave"
                }
                {
                        key: alt-enter
                        execution: ":open_stay"
                }

balta2ar avatar Feb 17 '22 14:02 balta2ar

I'd like to configure broot to limit the dir searching with max depth 2, and it should only show me directories or symlinks to directories.

Small up to this feature request.

stephane-klein avatar Jun 11 '22 09:06 stephane-klein

Would it not be better if there is an search option which to limit the search in different depth of the subfolders. As example 0/ for no search in subfolders, 1/ for search in only one level of subfolders, 2/ for search in subfolder and sub-subfolders and so on?

1andro1 avatar Jan 02 '23 19:01 1andro1

Closing as not specific enough, but #843 would probably answer part of the concern.

Canop avatar Mar 02 '24 12:03 Canop