workspace:close-others hotkey isn't working
scottrosenquist opened this issue · 0 comments
scottrosenquist commented
Premature <CR>
, sorry!
Please Review Before Posting!
- I checked that the bug does not happen in the CodeMirror Vim demo. If it does, please report it there and not here.
- I'm reasonably sure that this bug is indeed about the Vimrc file support and not a general Vim in Obsidian issue. If it's a general Vim issue, report it here.
Describe the bug:
I'm trying to replicate the vim only command. :help only
.
To Reproduce:
Steps to reproduce the behavior:
- Add
exmap only obcommand workspace:close-others
nmap <C-w>o :only
to your .obsidian.vimrc
2. Create a split
3. Hit <C-w>o
Expected:
One window is left, and it has focus.
Actual:
One window is left, but it does not have focus.
Environment (please complete the following information):
- OS: Windows
- Vimrc plugin version: 0.9.0
Additional context:
It works properly when I use the :only
command. It's only the normal mapping that has this issue. I have no other maps in Obsidian besides Ctrl + P and Ctrl + F. I do have other vimrc mappings, but this issue still exists even if I remove all other mappings besides these.