esm7 / obsidian-vimrc-support

A plugin for the Obsidian.md note-taking software
MIT License
1.07k stars 47 forks source link

fix README , validate gt and gT command without Tab Switcher plugin #219

Closed WATA-Haru closed 3 months ago

WATA-Haru commented 5 months ago

Subject: Update to README for Tab Switching Functionality

Body: Hello! Thank you for maintaining this plugin. I have made some updates to the README.md regarding the tab switching functionality. Here are the changes:

Before:

exmap tabnext obcommand cycle-through-panes:cycle-through-panes
nmap gt :tabnext
exmap tabprev obcommand cycle-through-panes:cycle-through-panes-reverse
nmap gT :tabprev

After

exmap tabnext obcommand workspace:next-tab
nmap gt :tabnext
exmap tabprev obcommand workspace:previous-tab
nmap gT :tabprev

With these changes, I am now able to switch tabs without using the Tab Switcher plugin. Using obcommand workspace:next-tab and obcommand workspace:previous-tab allows for moving between tabs.

I also encountered issues with using cycle-through-panes for tab movement (even though I have the tab-switcher plugin installed). When checking with the developer tool and trying different commands such as :obcommand cycle-through-panes:focus-right-sidebar, it worked. However, when I typed :obcommand cycle-through-panes:cycle-through-panes-reverse and :obcommand cycle-through-panes:cycle-through-panes, nothing happened.

If you can confirm these changes are correct, I would appreciate it if you could update the documentation accordingly. Thank you!

kyleliu-code commented 3 months ago

very nice, it works to me! thanks