Commit Graph

189 Commits

Author SHA1 Message Date
AustinS
bc9fb8e813 Add CleanPath() to telekasten.lua
The function CleanPath() cleans up the file paths for Windows users. Removes all content of the path up to the first `\\`, which should fix the issues related to Windows file paths.
2022-01-20 09:46:40 -06:00
lambtho12
eba6dcd1d7 Add existing dir and file check before renaming 2022-01-20 15:06:04 +01:00
lambtho12
44ad8d87be Sanitize sed input 2022-01-20 13:32:11 +01:00
lambtho12
d5c107c195 Refactor tk buffer saving 2022-01-20 11:51:29 +01:00
lambtho12
743479b5b9 Only save telekasten buffers 2022-01-20 11:27:52 +01:00
lambtho12
0e00cafafa add prompt before saving buffers 2022-01-20 10:34:22 +01:00
Rene Schallner
9cad17f63a attempt to improve #71 2022-01-20 09:49:09 +01:00
lambtho12
c729846a98 Merge branch 'main' into RenameNote 2022-01-20 09:12:57 +01:00
Rene Schallner
b8767dd9e3 fix follow-up picker for nvim-0.7 nightly with latest telescope 2022-01-19 08:19:32 +01:00
lambtho12
2010f29179 improve checks, save all buffers 2022-01-18 22:38:34 +01:00
Rene Schallner
42241c1e15 re-fix #69 proper handling of img subdir in dir check 2022-01-18 19:10:50 +01:00
Rene Schallner
a3daba4caf fix #69 2022-01-18 18:57:56 +01:00
lambtho12
15d4355ac1 fix: properly treat files in ZK home 2022-01-18 11:52:35 +01:00
lambtho12
5f19d27a9a add: renaming in subdirs 2022-01-18 11:30:30 +01:00
lambtho12
6d70bcef87 fix: old file deletion and link update
- Old file properly deleted after renaming no matter where we are in the
  zettelkasten tree.
- Workaround links with `#heading` and `#^paragraph` by only looking for
  the first elements of the link. Ideally it should be a proper regex
2022-01-18 11:05:46 +01:00
lambtho12
a11dfbc586 add: basic note renaming 2022-01-18 10:25:54 +01:00
Rene Schallner
c27eab6007 re-fix #63 : don't check on setup but on (first) use 2022-01-16 14:05:54 +01:00
Rene Schallner
3bcda6e11e Merge pull request #62 from lambtho12/main
feat: add rfc3339 format for templates (fix #61)
2022-01-16 11:18:12 +01:00
lambtho12
9ad4bfa59c fix: support different dates using dinfo 2022-01-16 08:38:48 +01:00
Rene Schallner
44713c0690 Fix #63 by checking for essential configured dirs at startup and ask for creating them if not present 2022-01-16 08:26:16 +01:00
lambtho12
3c49712d8c feat: add rfc3339 format for templates 2022-01-14 16:38:14 +01:00
Rene Schallner
90f9cd784b fix luacheck: remove unused local 2022-01-02 15:05:08 +01:00
Rene Schallner
83526ce074 fix #53 2022-01-02 14:50:38 +01:00
Jon Glueckstein
2a72db611d Fixed day suffix - there's no 33rd, but there is a 23rd 2021-12-30 09:40:15 -06:00
Rene Schallner
e769c62b56 update readme with new template_handling and new_note_location opts 2021-12-25 13:37:50 +01:00
Rene Schallner
1a13b03171 fix #49: set new option auto_set_filetype to false if you don't like
the telekasten filetype
2021-12-25 07:44:57 +01:00
Rene Schallner
b1593bb4c1 fix #43 via template_handling option, #38 via new_note_location opt, #33 improvements (detecting dailies/weeklies in links) 2021-12-25 07:22:30 +01:00
Rene Schallner
39a4e40cfc progress with template_handling and new_note_location, as well as
resolve_link returning date/calendar info in Pinfo.
2021-12-23 19:40:10 +01:00
Rene Schallner
7838438ab1 pinfo refactoring finished 2021-12-19 07:42:43 +01:00
Rene Schallner
a66cc06739 refactor: escape paths and titles, introduce pinfo 2021-12-19 06:09:52 +01:00
Rene Schallner
6b3a1fead9 fix highlights of links and backlinks in tag search after tag picker 2021-12-18 05:37:35 +01:00
Rene Schallner
56d4b40415 fix #48 2021-12-17 14:59:40 +01:00
Rene Schallner
9c34309bb9 undo one micro cleanup 2021-12-15 21:40:49 +01:00
Rene Schallner
63d3d7df21 micro cleanup 2021-12-15 21:29:50 +01:00
Rene Schallner
060e1a80da fix #45 2021-12-15 11:45:03 +01:00
lambtho12
8f58abed84 fix: make goto_today() look for daily notes, not zettels 2021-12-14 21:25:15 +01:00
Liquidmantis
d58594d3b9 stylua all the things 2021-12-13 18:10:10 -07:00
Liquidmantis
e9fe2bf9c5 fix bug where create_note_from_template can be called without calendar info 2021-12-13 18:09:04 -07:00
Rene Schallner
27023c5a6d Merge branch 'feature-template-dates' into main 2021-12-13 17:19:36 +01:00
Rene Schallner
0749d4a9a6 fixed to stylua style 2021-12-13 17:19:19 +01:00
Rene Schallner
ac10a1d1b3 Fix #39 : new option subdirs_in_links = false. Defaults to true,
though.
2021-12-13 10:20:54 +01:00
Rene Schallner
e84ca9615f u r 2021-12-13 08:51:58 +01:00
Rene Schallner
8da98c0bf3 u r 2021-12-13 08:50:37 +01:00
Rene Schallner
a2db85153a fixed bug in link count display for tags 2021-12-13 08:06:44 +01:00
Rene Schallner
89191a1c84 initial support for #36 : pickers can now show the number of links and
backlinks if opts.show_link_counts is set. Which it is for the 'link
search' following the tag selection.
2021-12-13 07:38:51 +01:00
Rene Schallner
0803d54f62 guard against non-configured tmpl dirs, get bufname right 2021-12-13 04:28:03 +01:00
Liquidmantis
7fadab23b5 fix issues with dropped options 2021-12-12 19:59:56 -07:00
Liquidmantis
8d920f9650 resolve some errors with date calculations when creating a note from the
calendar.
2021-12-12 15:54:56 -07:00
Liquidmantis
d39ed91001 improvements from PR comments 2021-12-12 12:56:10 -07:00
Liquidmantis
f7b5017d05 restore current month from accidental deletion 2021-12-11 12:16:31 -07:00