Commit graph

12 commits

Author SHA1 Message Date
9dcd2556ba
Rename list module to files module
Renamed to 'files.lua' since it is the only module actively working on
the underlying filesystem so far -- gathering existing files and zettel
in the directories.
2021-04-30 15:30:43 +02:00
e31630a8c4
Fix function formatting getting zettel from dir 2021-04-30 15:26:32 +02:00
5228a3b49e
Refactor file listing and zettel picking 2021-04-30 15:09:07 +02:00
e4e6fca765
Fix unused variables and useless pending test 2021-04-30 13:28:00 +02:00
93a1dfbae4
Add zettel opening by anchor 2020-11-06 17:28:05 +01:00
162057f149
Add configurable zettel root directory
Plugin will by default recursively look in this directory for any
zettel.
2020-11-06 16:44:55 +01:00
d29d92cc0a
Remove hardcoded options, do repo house-cleaning
Update readme and tmux.session file.

Remove unused tests, update option calling.
2020-11-04 22:27:30 +01:00
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
e96b454b23
Add simple zettel retrieval function 2020-10-30 13:48:17 +01:00
313ad0b60c
Refactor list tests to directly use list api 2020-10-29 20:13:02 +01:00
e5afcb5e15
Reformat lua code with lua-format 2020-10-29 19:00:23 +01:00
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