-
Notifications
You must be signed in to change notification settings - Fork 268
Navigate back and forward #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I would be willing to build this myself, however I'm not very familiar with Lua nor with how Neovim plugins are built so it will probably take a while. |
I second this feature request! |
I assume If so, you can just use Alternatively, you can use I think this should solve your issue. |
It shouldn't cycle through the already open notes, it should follow (either backwards or forward) the chain of notes that the user created by following various links, which is different from notes opened in different buffers. In fact, when you click on a link in Obsidian, it doesn't actually open it in a new tab, but in place of the current note. This also means that you can get to the same note in various ways. |
it's a slightly different thing; bnext and bprev are fixed and depend on the order of access; we're looking instead to navigating the buffers by access history, i.e.
if I open 10 buffers:
buf1 buf2 buf3 buf4 ... buf9 buf10
then access buf4 via a link in buf10, bprev will open buf3, but I want to go back to buf10
…On Monday, March 4th, 2024 at 2:58 PM, Stefan Otte ***@***.***> wrote:
I assume :ObsidianForward and :ObsidianBackward should just cycle through the already opened notes?!
If so, you can just use :bnext and :bprevious to jump to the next/prev buffer. These commands are [often](https://github.com/tpope/vim-unimpaired) mapped to ]b and [b or similar.
Alternatively, you can use :Telescope buffers to jump to the open buffers.
I think this should solve your issue.
—
Reply to this email directly, [view it on GitHub](#408 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/A7UGNSOHCWNA5E72FMGKZCLYWR4ZFAVCNFSM6AAAAABDOIXRJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGY2DANJSHE).
You are receiving this because you commented.Message ID: ***@***.***>
|
Ah, I see. Slightly different indeed. Thanks for clarifying. |
I think this plug-in does what u want: https://github.com/volskaya/windovigation.nvim |
I had the same issue and started to use ctrl-O and ctrl-I more. Not quite the same, but usually does the job. And no need for a plugin. |
This is need more development, I am sure many people would love it. |
Yeah I'm missing this feature since I've used |
Please try windovigation.nvim. |
vim-bufsurf is similar to windovigation, but it is more suitable to my expectation. |
🚀 The feature, motivation and pitch
One feature that I'm missing from Obsidian is the ability to navigate back and forward. Ideally it would be in the form of two new commands:
:ObsidianBack
and:ObsidianForward
.Alternatives
I realize that this can somewhat be achieved using CTRL-O and CTRL-I, however it's not quite the same for two reasons:
Additional context
No response
The text was updated successfully, but these errors were encountered: