broot icon indicating copy to clipboard operation
broot copied to clipboard

`input` initial mode unexpected behavior

Open Martin1887 opened this issue 1 year ago • 3 comments

When the initial_mode parameter is set to input, after changing the directory the mode is automatically returned to input.

Maybe this is the expected behavior, but it seems weird to me pressing h to focus the current folder and finding the mode in input mode again, or navigating into a folder and finding j is searched instead of moving the cursor down.

More than an initial_mode this seems to me as a default_mode, having modal mode to be continuously activated after each operation.

Could adding another parameter default_mode or adding another option input_at_start to the initial_mode parameter the best alternative? I don't know.

Thanks!

Martin1887 avatar Jan 30 '24 10:01 Martin1887

Could adding another parameter default_mode or adding another option input_at_start to the initial_mode parameter the best alternative?

Or just take the previous mode ?

Canop avatar Jan 30 '24 10:01 Canop

Yes, I'm currently using the previous mode, but I was not sure if this is the desired behavior of the input mode and I think the other type of initial mode could be more comfortable for some people, but I cannot confirm it :-).

Martin1887 avatar Jan 30 '24 12:01 Martin1887

If this is the desired behavior then this issue would be a request more than a bug. I'm comfortable on the modal initial mode, so if this issue is not upvoted it should not have high priority.

Martin1887 avatar Jan 30 '24 12:01 Martin1887