Commit Graph

258 Commits

Author SHA1 Message Date
Alexander Lay-Calvert
1d30d5c432 Implemented a shorttitle substitution for templates, when creating notes in subdirs the shorttitle only uses that last part of the filename, not the entire path 2022-09-23 14:16:08 -04:00
Rene Schallner
fdb089daf6 added viu img previewer support 2022-08-19 16:25:24 +02:00
Rene Schallner
0c843429ab Fix media_previewer config option default handling 2022-08-18 22:57:16 +02:00
Rene Schallner
7d4505b000 added media previewer alternative catimg 2022-08-18 17:30:25 +02:00
Rene Schallner
c126bf2592 :Telekasten switch_vault (with underscore) 2022-08-18 16:23:35 +02:00
Rene Schallner
747d522fa4 Added switch vault to command palette 2022-08-18 15:53:41 +02:00
Shivanth
fa66746981 Squashed PR #158 and fixup into 1 commit
Squashed PR#158 into 1 single commit;

        Add vaults

        Add documentation:

        Make luachack happy.

        Address review comments

    fixed tabs and formatting of PR #158
2022-08-17 23:03:33 +02:00
jkub6
5422b74fd8 add check for current setting 2022-07-22 11:18:05 -06:00
Adriano Correa
5798c40d0b Merge pull request #1 from renerocksai/main
Fix calendar
2022-07-15 09:23:25 -03:00
Rene Schallner
67a6e917b8 Merge pull request #123 from ernie/observe-calendar-monday
Observe calendar monday option correctly
2022-07-14 01:47:17 +02:00
Rene Schallner
81f7e54a77 Merge pull request #122 from ernie/hide-numbers-on-calendar-display
Hide numbers on calendar display.
2022-07-14 01:45:55 +02:00
Adriano Correa
be91092e21 fix: Remove CleanPath function, which is causing errors on Windows machines (fixes #151) 2022-07-13 09:28:56 -03:00
lambtho
994a44999f Fix pcre2 issue with ripgrep (closes #145) (#148)
* fix(tags): fix rg command if PCRE not available (closes #145)

Some linux distro do not compile ripgrep using the --pcre2 flag.
This commit checks if the --pcre2 flag is available and then tweaks the
ripgrep command accordingly.

At the moment, it will therefore not be possible to filter-out
hexademical color codes from #tags for people that do not have the
--pcre2 flag available. This will be documented in a later commit.

**Important**: the detection of the PCRE availability is done by trying
a simple rg search using _os.execute_. This function interface was
changed in Lua 5.2, which means it will break when Neovim will update to
Lua >5.1. The fix is already there in commented form.

Fixes #145

* refact: cleanup

* doc(tag): add note about rg --pcre2

* doc(tag): add note about rg --pcre2 in vim help
2022-06-26 17:49:19 +00:00
lambtho12
440033919e fix(tags): yaml tags parsing (closes #142) 2022-06-13 09:14:11 +02:00
Thomas Lambert
b2ed311f28 fix(tags): no spaces after comma (see #142) 2022-06-12 16:50:13 +02:00
lambtho12
a4dd1690a0 fix(tags): spaces after brackets (closes #142)
Signed-off-by: Thomas Lambert <tlambert@tlambert.be>
2022-06-12 15:57:47 +02:00
lambtho12
0180e38eab fix: note naming issue (closes #134) 2022-05-20 09:34:10 +02:00
lambtho12
05464b31ed fix: preview images for any subdir (closes #132) 2022-05-18 15:10:57 +02:00
lambtho
a0f385f20f Merge pull request #130 from ernie/improve-note-filenames
Improve note filename formatting options
2022-05-18 12:05:29 +00:00
lambtho12
7ccc2b1bef Merge branch 'main' into 133-template_tags 2022-05-18 13:58:28 +02:00
lambtho12
08a785482d fix: do not show tags in template (closes 133) 2022-05-18 13:52:59 +02:00
lambtho12
abe8e8b441 fix: do not look for tags in template dir 2022-05-18 13:19:16 +02:00
Ernie Miller
2ff562480a Improve note filename formatting options
Provide the user with the choice between:

"title" (default) - Title only
"uuid" - UUID only
"uuid-title" - Title prefixed by UUID
"title-uuid" - Title suffixed with UUID
2022-05-12 10:30:18 -04:00
Ernie Miller
952141e78e Always return a uuid from get_uuid
We were previously only returning a uuid if the user wanted to include
them in their filenames, which meant that they couldn't be included in
the template itself.
2022-05-12 08:00:40 -04:00
Ernie Miller
17542ee617 Allow media picker to yank relative image links (#127)
* Allow media picker to yank relative image links

* Make stylua happy

* Fix for image paste as well

* Try to get more consistent relative path behavior

* Supply absolute paths to make_relative_path

* Add relative link handling for InsertImgLink
2022-05-10 14:18:21 +02:00
lambtho
c3da9a528a feat: allow auto-open of journal entries (#125) 2022-05-07 09:01:05 +00:00
Ernie Miller
49c3a90f32 Observe calendar monday option correctly
The calendar plugin checks the existence of calendar_monday, not whether
it's 0 or 1, so we don't want to set it unless it's 1.
2022-05-05 19:40:58 -04:00
Ernie Miller
7468025d4f Hide numbers on calendar display.
Without hiding numbers and relative numbers, the week number indicator
is cut off.
2022-05-05 18:29:37 -04:00
chrsm
c0925f0d30 fix: note title ending removed when it matches parts of extension (#119)
* fix: note title ending removed when it matches parts of extension

By using [] we provide a character set rather than a direct match with ().
Lua patterns don't allow N-captures with (), so we continue executing
the pattern until there are no more substitutions being executed.

fixes #118

* fix: refactor extension stripping from title

Don't worry about n-capture, once is enough.
Turned it into a fn so it can be used elsewhere.

refs #118
2022-05-01 07:05:01 +00:00
lambtho12
2573b4a6d1 style: make stylua happy 2022-04-30 21:54:51 +02:00
lambtho12
8aa35ec6aa fix: use local variable 2022-04-30 21:42:58 +02:00
Yuta Katayama
b3a58db72e feat: Add sorting feature [closes #85]
* feat: Add sorting feature #85

* fix: Remove the lines that should not be sorted
2022-04-30 19:39:48 +00:00
Lambtho
10df87abae fix: rename links with spaces (closes #117) 2022-04-28 10:21:45 +02:00
Lambtho
90a99a41f6 fix: hex colors no longer tags (closes #115) 2022-04-27 21:25:00 +02:00
Lambtho
7f5b625e4f fix: rename filenames with spaces 2022-04-27 20:28:58 +02:00
Lambtho
f17d5b3f16 fix: rename regex, closes #113 2022-04-27 14:37:55 +02:00
lambtho
a1eca0bd91 Merge pull request #112 from renerocksai/109-bug-headerlinks
fix: follow_links with headerlinks, closes 109
2022-04-17 20:13:43 +00:00
Lambtho
1acfb01d75 fix: follow_links with headerlinks, closes 109 2022-04-17 22:11:34 +02:00
Lambtho
7eebb41c9f fix: backlinks with headerlinks, closes 103 2022-04-17 21:55:57 +02:00
Lambtho
d5e02b0823 fix: media links issue, closes #91 2022-04-17 20:39:51 +02:00
lambtho12
71ba26c88d fix: accents in tags closes #86 2022-04-17 15:27:48 +02:00
Rene Schallner
02023c5e59 Merge pull request #84 from lambtho12/uuid_prefix
Add UUID prefix to new notes
2022-04-06 20:13:55 +02:00
Rene Schallner
414f3275a3 Merge pull request #76 from AuLaSW/windows_file_path_clean
Windows file path clean
2022-04-06 20:12:47 +02:00
Matthew Flower
b7ac136489 Add support for Pasting Images on Mac. Also, fix relative paths for images when markdown is in daily and there is an image subdir. 2022-02-11 18:05:43 -05:00
lambtho12
767e6dc0c4 make uuid more robust 2022-01-27 12:04:39 +01:00
lambtho12
c1008bff22 make uuid more useful 2022-01-27 11:31:17 +01:00
lambtho12
2e4d282344 make luacheck happy 2022-01-27 11:01:44 +01:00
lambtho12
9705f5795b Add UUID prefix to new notes 2022-01-27 10:54:30 +01:00
AustinS
f0e6914a7c Update telekasten.lua
Fix stylua and luacheck errors
2022-01-26 14:31:36 -06:00
AustinS
28e0c6259d Update telekasten.lua
Correct Stylua and Luacheck errors
2022-01-26 14:30:09 -06:00