Commit graph

14 commits

Author SHA1 Message Date
Marty Oehme 78a1948545
Add link formatting function
Function takes an anchor (and optional link text and formatting style)
and transforms the input into a link to an anchor id.

Currently works for markdown and wikilink style link transforms.
2020-10-30 18:44:50 +01:00
Marty Oehme aa3e1eb754
Refactor link cleaning and transformation functions 2020-10-30 18:21:04 +01:00
Marty Oehme cac9720d35
Refactor anchor and link functions into files 2020-10-30 16:30:37 +01:00
Marty Oehme ece30350c2
Refactor options to separate file
Options were previously set ad-hoc in the initialize function, but
re-set and overwritten at various places.

Options now live in one central module (options.lua), where they
directly access the neovim options set, and re-access them on any run.

That means options can be changed while the plugin is running and it
will use their newer versions, without requiring any re-initialization.
2020-10-30 16:04:23 +01:00
Marty Oehme e96b454b23
Add simple zettel retrieval function 2020-10-30 13:48:17 +01:00
Marty Oehme 313ad0b60c
Refactor list tests to directly use list api 2020-10-29 20:13:02 +01:00
Marty Oehme 441cbcbc63
Fix zettel listing obeying zettel extension option 2020-10-29 19:09:56 +01:00
Marty Oehme e5afcb5e15
Reformat lua code with lua-format 2020-10-29 19:00:23 +01:00
Marty Oehme a365cef6c7
Move intended features to README 2020-10-29 18:41:05 +01:00
Marty Oehme 1c44f244e4
Refactor list functions and options
Moved list functionality into separate file list.lua.
Moved zettelkasten options from local variables to table-scoped
variables, initialized in ZK.init().
2020-10-29 18:17:00 +01:00
Marty Oehme 72f84898f0
Add recursive file listing 2020-10-29 15:22:51 +01:00
Marty Oehme 7e77b616ea
Add simple anchor listing functionality 2020-10-29 12:18:19 +01:00
Marty Oehme c7236ad295
Add Datestamp and Link creation functionality 2020-10-26 19:32:27 +01:00
Marty Oehme 86ab71b1d6
Initial commit 2020-10-26 15:55:40 +01:00