Code Monkey home page Code Monkey logo

vim-waikiki's People

Contributors

fcpg avatar gordiandziwis avatar tlvince avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vim-waikiki's Issues

How to search ?

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 !

Question: How should I exactly use tags?

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?

Account the hyphen symbol ('-') when creating a link from the word under cursor

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.

random filenames

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?

Setting g:waikiki_create_type to '' doesn't work

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 == ''

a vim error: .md is not an editor command

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

Add file and http protocol to follow link function.

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

A little mistake on documentation file

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.

Write buffer before following link

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.

How can I customize waikiki#FollowLink?

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.

Only the last tag considered

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

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.