Giter Club home page Giter Club logo

Comments (6)

michal-h21 avatar michal-h21 commented on May 22, 2024 2

@abers that is a good idea. It is now possible to configure used template and custom variables for the front matter. The configuration can be set per wiki, so it can use a different templates for Markdown and Vimwiki syntaxes.

Sample configuration:

let g:vimwiki_list = [{'path':'~/scratchbox/vimwiki/markdown/','ext':'md','syntax':'markdown',}, {"path":"~/scratchbox/vimwiki/wiki/"}]                                  
let g:zettel_options = [{"front_matter" : {"tags" : ""}, "template" :  "~/mytemplate.tpl"}]

The example requires tags field in the YAML front matter and uses ~/mytemplate.tpl file as a template for the Markdown syntax. There is no configuration for the second Wiki. The order of configurations in g:zettel_options must be same as the order of configured wikis in g:vimwiki_list

from vim-zettel.

abers avatar abers commented on May 22, 2024

Thanks! Given it a test and all is working perfectly.

from vim-zettel.

michal-h21 avatar michal-h21 commented on May 22, 2024

Great! I've also fixed other things. Do you have ideas for more features?

from vim-zettel.

abers avatar abers commented on May 22, 2024

No ideas that are fully formed. Unsure how easy or not it would be in vimscript but I was planning to have a go at writing a Python script that would scan through all the files in a directory, check which ones are linked to which, and then return a list of zettels that have no links or the links are broken / have incorrect titles. Could then build off of that to add features so that if the title of a zettel changes you can quickly search and replace all links for it, return all zettels that reference another one, etc.

from vim-zettel.

michal-h21 avatar michal-h21 commented on May 22, 2024

Something similar is in fact also on my ToDo list, I want to create some sort of inbox, where all notes not referenced by any other note would be collected. I am still not sure which language to choose, I feel that Vimscript may be not fast enough and it is really hard to debug (at least for me). If you are willing to create such tool in Python, it would be really great.

from vim-zettel.

abers avatar abers commented on May 22, 2024

I am very much a beginner Python user so may be some time till I get around to it. However, will let you know if and when I do. It might be worth creating separate threads for each feature idea, with basic details in terms of function, rationale, planned way to implement it. Then others can chip in with ideas for refining or extending it etc.

Have you seen sublime_zk, the zettelkatsten plugin for Sublime Text? Might be a few feature ideas to garner from it. Also unsure if you are a member already but there is a Research Hacking slack group of academics interested in improving their digital workflows. A lot of early discussion on the group was around the zettelkasten method, and there are a small number of vim users on it. May be worth asking folk on there if there are any features they'd be interested in.

from vim-zettel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.