Skip to content
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

Make :ZettelOpen jump to correct line #120

Open
kjk11 opened this issue Jan 17, 2022 · 4 comments
Open

Make :ZettelOpen jump to correct line #120

kjk11 opened this issue Jan 17, 2022 · 4 comments

Comments

@kjk11
Copy link

kjk11 commented Jan 17, 2022

For long notes it would be handy to automatically jump to the correct line with the cursor after running :ZettelOpen and selecting a note to jump to. It seems that would be a more sensible behaviour than just jumping to the beginning of the note, as it happens currently. While people who stick to the principles of Zettelkasten mostly keep short notes, people with long lists and 'info dumps' will have to either remember the line number of the matching line or (more likely) re-enter their search the usual way to get to the correct line and retrieve information. Personally, it slows my workflow down quite a bit here and there...

@michal-h21
Copy link
Owner

That's a good idea. It should work now.

@folofjc
Copy link

folofjc commented Jul 19, 2022

Is it possible to add this for links? For instance, when inserting links with notational-fzf and selecting a word, to choose the first previous "tag" (header, etc)?

@michal-h21
Copy link
Owner

That should be possible in theory, at least for the Vimwiki syntax, where you can link to anchors based on headers, etc. I can take a look at this in the future, but cannot promise that it will be soon.

@folofjc
Copy link

folofjc commented Jul 20, 2022

Okay, thanks this would be super helpful! Vimwiki is "in the process" of updating so that it also uses github style anchors (it is on dev branch, but not master), so I think that would also help since it could remove the spaces in header anchors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants