Although we have the key bindings to toggle the sidebar, I would love to have a shortcut that would open the file explore and focus on it so I can use j,k navigation. The same shortcut should close the sidebar and focus on the editor.
Today it is possible by using ctrl + w + h, but that is not specific to the File Explorer and also it does not work well when you have the sidebar closed, as it will focus in the sidebar navigation (explorer icon, search icon, etc.) instead of the Explorer.
My desired workflow is:
Have the explorer closed, hit a shortcut (today I have leader + m) to open the file explorer and focus on it. Choose a file to open, then close the explorer with the same key shortcut and have the focus in the editor.
Maybe <c-s-e> would be a good shortcut.
Hi, I would appreciate this feature too.
Furthermore, what do you think of focus the file, you are actually working on to focus by default?
You could than easily move j, k to files in the same directory.
This is what vscode does with ctrl + 0
Hey @tw1t611 I've added this feature now in an open PR, but I can look at adding a "Focus current File" option as well, since I think its been requested elsewhere.
In this case nvm, i'd appreciate a "Focus current File" option.
On Fri, Jun 22, 2018, 11:13 Ryan C notifications@github.com wrote:
Hey @tw1t611 https://github.com/tw1t611 I've added this feature now in
an open PR, but I can look at adding a "Focus current File" option as well,
since I think its been requested elsewhere.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/onivim/oni/issues/2151#issuecomment-399377471, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMvCNZrwI6o1sxncxJ-r5RUNx2-7AED4ks5t_LUpgaJpZM4Tr6oP
.
Most helpful comment
Maybe
<c-s-e>would be a good shortcut.