Skip to content

General VimWiki and Markdown Integration #5

@jessebett

Description

@jessebett

Expanding #4 and the blurb I just dumped in papis/papis#236.

Papis with vim integration would make a really nice companion to VimWiki as a research notebook and VimwikiDiary as a research journal.

Right now there is a bit of decision fatigue. Suppose I read a paper today as part of some project, do I:

  • Record those notes in the papis notes file for the paper. This is great if I read the paper later for some other project.
  • Record the notes in my VimWikiDiary, which is great for keeping track of what I did today and recalling project progress.
  • Record the notes in the VimWiki entry for that project, which is great for keeping ideas related to the project all in one place.

Making Papis integrate with vimwiki (markdown) syntax to allow me to easily drop vimwiki links to the notes file massively simplifies this. I can have and eat all 3 cakes at once by just keeping the notes in the Papis notes file and linking to them from my VimWikiDiary or VimWiki project entry.

At the moment it would be sufficient to have a :PapisNoteWikiLink (or more generally :PapisNoteMarkdownLink) function which opens the TUI for selecting a document and then exports the path to the notes file (relative to the vimwiki, that might be a bit annoying). It doesn't even need to do the templating stuff, because it could just return [](rel/path/to/notes) and let the user supply their own link text in the [] spot.

However this function is written would guide other convenience functions. E.g. :Papis currently supplies the bibtex cite command, e.g. for Latex. A custom function like :PapisTemplate which could read a custom template specified in the vimrc (like {doc[title]} {doc[author]}) and then reads that into the file. This would be a convenience function together with the above :PapisNoteWikiLink to put some text-formatted citations inside markdown files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions