Comments (6)
@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.
Thanks! Given it a test and all is working perfectly.
from vim-zettel.
Great! I've also fixed other things. Do you have ideas for more features?
from vim-zettel.
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.
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.
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)
- Add `%random` variable for template files HOT 1
- ZettelInsertNote fails with multiple wikis: Can't open file... HOT 1
- ZettelInbox indiscriminately adds all zettels to the page HOT 3
- Front Matter not included in YAML HOT 5
- Generate ID in template HOT 2
- Flying Zettels/Buffers HOT 6
- Make :ZettelOpen jump to correct line HOT 4
- Would it be possible to use Telescope rather than fzf? HOT 9
- Linking visually selected text to an existing zettel HOT 3
- Allow for NV-like creation of new zettel HOT 1
- Error when running ZettelInbox on Vimwiki dev branch HOT 4
- ZettelSearch and insert mode HOT 1
- :ZettelSearch and :NV search different things HOT 1
- Feature Request: ZettelOrphanedPages?ZettelOrphans
- Should this work in Neovim? I cannot make it create notes anywhere but current directory HOT 7
- :ZettelOpen & :ZettelSearch don't work HOT 8
- Disregard
- Question: Using vim-zettel with 11ty - Generating 11ty links on output HOT 1
- Create zettels in a subfolders? HOT 12
- Zettels are not created in the current subfolder. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-zettel.