fcpg / vim-waikiki Goto Github PK
View Code? Open in Web Editor NEWVim minimal wiki
Vim minimal wiki
First I'd like to say thanks for making such an excellent plugin, it fits my use-cases perfectly.
The only issue I've had with it so far is that the names of a couple of the option variables mentioned in the Vim doc file, don't actually match the variable names used by the plugin source code.
Vim doc | Source code |
---|---|
g:waikiki_roots |
g:waikiki_wiki_roots |
g:waikiki_patterns |
g:waikiki_wiki_patterns |
The documentation doesn't show a way to search text in the wiki.
Is there a way to do it ?
Also, how could I search for tags ?
That information should be added to the documentation, even if there is no search function since it's an expected one
Thanks !
Hi,
I read documentation and I can't achieve generate tags. In my vimrc file I have the next lines:
let g:waikiki_roots = ['~/vimwiki/']
let maplocalleader = "\<F7>"
let g:waikiki_default_maps = 1
So, I type on my index file :tag1:tag2
, then on normal mode :WaikikiTags
and nothing happens, I try with F7 + T and again nothing happens.
On my waikiki folder no appears tags file and I don't understand the workflow with tags.
Please, Can you teach me how to use tags with Waikiki?
Hi.
First let me thank you for this wonderful minimalistic plugin.
I've finally decided to track my notes within VIM and so far this plugin looks exactly what i was looking for.
The only thing currently that works against my expectations is the fact that the hyphen symbol is not accounted when creating a link from the word under cursor.
For example, I have the following line:
vim-cheat-sheet - here are my personal VIM cheat sheet
The cursor is on the first word of the line, i.e. vim
.
I press (which is by default mapped to the <Plug>(waikikiFollowLink)
) and expect that the file vim-cheat-sheet.md
will be created. However the created file have a much shorter name: vim.md
.
I've learned that i can use the VISUAL mode, to achieve the desired behaviour, but i really would like to save some keystrokes :)
I've shortly looked to the implementation of the plugin and found the reason of the described behaviour:
function! waikiki#FollowLink(...) abort
...
let name = get(options, 'name', expand('<cword>'))
...
Affect of the <cword>
could be customized by the iskeyword
variable. Thus my current (and far from ideal) workaround is to add the following settings to my .vimrc file in order to account the hyphen symbol.
let g:waikiki_roots = [ <PATH_TO_NOTES_ROOT> ]
autocmd BufRead,BufNewFile <PATH_TO_NOTES_ROOT>/* setlocal iskeyword+=-
I believe it would be nicer to have a setting with a similar affect inside the plugin itself, so it will affect only the plugin functionality (even more precisely, only the functionality of the waikiki#FollowLink function inside the plugin) rather than the rest of VIM functionality for the all files under the <PATH_TO_NOTES_ROOT>
directory.
Overall I ask you to consider to add a new global setting for the plugin, which will allow to specify (at least to extend) the symbols that will be accounted as part of the word during the link creation. I think it would be also nice if hyphen symbol would be there by default, because it is kind-a common to use this symbol as a word separator inside the file names.
Best regards,
Dmitry.
hi,
great plugin, thanks!
I'm trying to have this plugin generate random filenames instead of filenames based on the string
e.g. [bookmarks](1r9fe)
instead of [bookmarks](bookmarks)
I tried to set the let g:waikiki_link_fmt = '[%s]('.system('tr -dc A-Za-z0-9 </dev/urandom | head -c 5').')%.0s%.0s'
but this is causing a few bugs.
are you able to provide any suggestions on how to achieve this?
Hello, title hopefully explains my problem.
I am getting this error after using the default keybind <localleader><enter>
to create a new wiki file.
line 55:
E691: Can only compare List with List
E15: Invalid expression: targetlist == ''
Thanks for the great minimalist plugin
to reproduce: type
## Manual plugins
v$ to select and
a vim error in function follow_link: .md is not an editor command.
the file is created as "Manual-plugins" without the .md ext.
the file is not linked
Such a nice minimal wiki, it would be a shame if someone requests some features ;)
Like being able to handle different protocols with the follow link function.
[namespace lookup for RDF developers](http://prefix.cc/) <- open in browser
[Some File](file:///home/user/test.scala) <- open in vim
On the documentation file I found a little mistake, exactly on lines 105 and 106:
Tag format is configurable with the |g:waikiki_tag_start| and
|g:waikiki_tag_start| option.
Missing the end configuration option. The fix version:
Tag format is configurable with the |g:waikiki_tag_start| and
|g:waikiki_tag_end| option.
If the buffer has pending changes when invoking Plug(waikikiFollowLink)
, vim will throw
Error detected while processing function waikiki#FollowLink:
line 69:
E37: No write since last change (add ! to override)
It'd be nice if waikiki could write the buffer itself first (perhaps configurable).
This would also help creating new links more fluid, e.g. visually selecting Hello World
, then hitting <LocalLeader><Return>
(helpfully) creates the link [Hello World](Hello_World.md)
, but bails out when trying to edit it.
I have some folders were the structure looks like this
<year>
|_ <month>
|_ <day>
|_ <timestamp>-<title>.md
Is there is a way to hook into waikiki#FollowLink
or override it, so I can add the timestamp always? Currently, I can't find a way to do this & it's very tedious to create a file manually, then also manually update index.md
to point to the right path.
Coming from vimwiki
, all I have to do is <leader>ww
and it opens the wiki index located on the folder I specified in my config.
Just wanted to know how exactly do I use this plugin?
Given the following file:
# Index
:foo:bar:
... the resulting tags file is generated:
!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Darren Hiebert /[email protected]/
!_TAG_PROGRAM_NAME Exuberant Ctags //
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
!_TAG_PROGRAM_VERSION 5.8 //
bar index.md /^:foo:bar:$/;" t language:waikiki
... i.e. only the bar
tag exists.
:tags
# TO tag FROM line in file/text
1 1 bar 1 # Hello
I'd expected both foo
and bar
to exist.
vim-waikiki cd29dbe
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.