davidbenjones / minwiki Goto Github PK
View Code? Open in Web Editor NEWA minimal, personal wiki plugin for vim
License: GNU General Public License v3.0
A minimal, personal wiki plugin for vim
License: GNU General Public License v3.0
Instead of using Mediawiki-style links (which admittedly have a clean look to them), use markdown-style links, which will make exporting wikis easier.
Pages can easily be deleted, but then dead links remain. A delete function that removes dead links would be nice. Furthermore, the ability to clean a project (removing links of files that were deleted outside the delete command) would be nice, too.
Title says it all. If a user presses enter on a non-existent link, a link should be created around the current word.
Playing around with the wiki, I've found that when a buffer is left, minwiki deletes the buffer whether or not a window is currently open on the buffer. I think that this can be solved by setting a buffer-local variable (b:something
) that keeps a count of how many windows are using the buffer. (I'm not sure if this is something that vim can do natively, but if it is, it's a well-hidden feature.)
There are a few considerations:
b:minwiki_window_count
and set it to 0
.The last one might be tricky. It looks like the relevant events might be BufWinEnter
and BufWinLeave
. This would remove some bookkeeping code from minwiki#Go()
.
Use :help event
.
I don't think that renaming a page outside of minwiki could be detected.
Right now, tabbing through links simply searches for characters. Links inside of code blocks should be ignored. See this thread on StackOverflow for how that might be achieved.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.