Commit Graph

172 Commits

Author SHA1 Message Date
Rene Schallner
941fed6ed7 stylua 2021-12-08 20:16:56 +01:00
Rene Schallner
e710d725fe initial support for tags: we start with: syntax 2021-12-08 19:04:01 +01:00
Rene Schallner
273a6fbbe2 make luacheck happy 2021-12-05 00:06:47 +01:00
Rene Schallner
50c99967de fix #20 follow-up: remove bindings preventing normal mode 2021-12-04 19:31:14 +01:00
Rene Schallner
2d0dc3793e fix #20: search all subdirs for [[link]], erase unused template instantiations 2021-12-04 19:13:53 +01:00
Rene Schallner
309eefe16b browse_media() and picker actions 2021-12-03 16:38:57 +01:00
Rene Schallner
7f5d44db4a Merge pull request #19 from lambtho12/main
fix: paste link after cursor
2021-12-02 12:39:12 +01:00
Rene Schallner
8da0bd070a fixed image preview: finding path to img previewer more robust now 2021-12-02 11:27:47 +01:00
Lambtho
200408712b fix: paste link after cursor 2021-12-02 09:55:59 +01:00
Rene Schallner
73593abc38 reformatted lua 2021-12-01 17:46:38 +01:00
Rene Schallner
4fcfe3974e cleanup post-merge pr 2021-12-01 17:13:29 +01:00
Lambtho
ee3a2ba521 fix: sanitize filesearch 2021-12-01 16:16:44 +01:00
Rene Schallner
31c4a605db Fix #16: templates should be optional 2021-12-01 16:10:18 +01:00
lambtho12
0d79b28723 fix: sanitize title input (prevent double extension) 2021-12-01 14:36:53 +01:00
Rene Schallner
4914c9d639 Fix #15: silly bug caused following non-special links to crash 2021-12-01 14:24:45 +01:00
Rene Schallner
1bd06e5d36 we can now follow links to headings and paragraphs both globally and
within specific notes!
2021-12-01 05:35:12 +01:00
Rene Schallner
35f4e6342f fix #12 (working with subdirectories): links to notes within
sub-directories will now always contain the relative path
2021-11-30 16:37:46 +01:00
Rene Schallner
e52c336391 preview images of markdown links 2021-11-30 15:53:23 +01:00
Rene Schallner
88aa0e4d62 image link insertion, plus img preview via extension 2021-11-30 14:16:01 +01:00
Rene Schallner
853412aca6 update comments 2021-11-30 03:36:24 +01:00
Rene Schallner
85beeb0038 refactored to single function style, improved find_files_sorted() with devicons and shebangs
-- find_files_sorted(opts)
-- like builtin.find_files, but:
--     - uses plenary.scan_dir synchronously instead of external jobs
--     - pre-sorts the file list in descending order (nice for dates, most recent first)
--     - (also supports devicons)
--     - displays subdirs if necessary
--         - e.g. when searching for daily notes, no subdirs are displayed
--         - but when entering a date in find_notes, the daily/ and weekly/ subdirs are displayed
2021-11-30 03:30:48 +01:00
Rene Schallner
84ca1ec0c9 daily, weekly pickers: don't display path names! 2021-11-30 00:33:58 +01:00
Rene Schallner
d3710d8e50 added option parameter i to toggle_todo(opts) and insert_link(opts) to enter insert mode. 2021-11-28 00:33:13 +01:00
Rene Schallner
d0c5b6f284 new feature: find_friends(): friend notes are note that reference the
same note as the link under the cursor
2021-11-27 23:15:50 +01:00
Rene Schallner
9f286ae78e implement #3: show backlinks 2021-11-27 14:28:49 +01:00
Rene Schallner
54e6af33f4 attempt to fix #4 by reverting to vim.fn api from vim.ui api. 2021-11-27 06:51:56 +01:00
Rene Schallner
cc8e735dff Fix #1: setup was not refreshing lookup table to templates (and maybe
other stuff)
2021-11-27 03:21:22 +01:00
Rene Schallner
1678479e1c fixi fixi after cleanup 2021-11-26 14:05:52 +01:00
Rene Schallner
05b959b2af toggle todo lines!!! first try! 2021-11-26 14:01:07 +01:00
Rene Schallner
abb5f01b5c fix markdown links to pasted imgs 2021-11-26 05:42:26 +01:00
Rene Schallner
777f4197fc less noise 2021-11-26 05:40:27 +01:00
Rene Schallner
87c4c1de21 more sane defaults for pasted images 2021-11-26 05:38:21 +01:00
Rene Schallner
723a2d25ef shorten markdown links to pasted images 2021-11-26 05:30:11 +01:00
Rene Schallner
97b5d322c9 support for IMAGE PASTING!!!!!!!!!!!!! 2021-11-26 04:49:51 +01:00
Rene Schallner
ab80db3ec9 fix: os.date.wday misinterpretation 2021-11-26 02:19:36 +01:00
Rene Schallner
4735cef711 lua-native sorting of dialy, weekly notes - thx to plenary.scan_dir()!!! 2021-11-26 02:03:10 +01:00
Rene Schallner
39ab56dfb0 trailing space removal (format) 2021-11-24 13:11:12 +01:00
Rene Schallner
8639e8865c re-broke long vimscript line, this time properly 2021-11-24 13:06:42 +01:00
Rene Schallner
3d6f244da0 re-introduced long line after breaking vimscript 2021-11-24 13:03:26 +01:00
Rene Schallner
29af4fdcc0 Formatted with stylua and checked with luacheck 2021-11-24 12:49:03 +01:00
Simon Hauser
6103af9800 fix: no more globals 2021-11-24 08:54:21 +01:00
Rene Schallner
5be94a786e rename misleading var 2021-11-24 00:34:30 +01:00
Rene Schallner
39c7ba0129 FIX: honor day, month, year etc when creating a note via calendar! 2021-11-24 00:18:01 +01:00
Rene Schallner
7703643806 fixi fixi 2021-11-23 04:07:06 +01:00
Rene Schallner
65b212c4e9 calendar support!!!!!!!!! 2021-11-23 04:02:22 +01:00
Rene Schallner
cd040c165d added new_templated_note() 2021-11-22 23:54:09 +01:00
Rene Schallner
3d0533ba73 yank notelink 2021-11-22 12:24:18 +01:00
Rene Schallner
fef6e5edeb fixed bug: when following link: check if target exists in daily, weekly,
too!
2021-11-22 01:16:51 +01:00
Rene Schallner
3bcaa73f11 removed old comments 2021-11-22 00:50:53 +01:00
Rene Schallner
b252f9ebe9 refactored! daily finder is gone! 2021-11-22 00:43:12 +01:00