[mini.files] How to not change focus on j/k when navigating back #2121
-
Contributing guidelines
Module(s)mini.files QuestionI hope I worded the title somewhat right. I wanted to ask if there is a way to configure mini.files to not jump focus when you press j/k after navigating back. It's hard to explain but, basically, this scenario:
At least in my case navigating back (to window 3) and then pressing j/k to navigate to something within that window and then having focus "suddenly" jump and window 3 now suddenly becomes window 4 (and moves right) completely messes with my brain. This is how I have set up -- File Explorer
require("mini.files").setup({
windows = { width_focus = 40, width_nofocus = 40, width_preview = 40 }
})Edit: @drowning-cat made a nice video. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Demo: demo.mp4 |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this behavior is intentional. It is the result of the combination of the following goals:
There are several solutions (from most to least robust):
Hope this helps. |
Beta Was this translation helpful? Give feedback.
Yes, this behavior is intentional. It is the result of the combination of the following goals:
There are several solutions (from most to least robust):
Hby default) instead of just "go out" (which ishby default). This will trim the right part of the branch af…