Commit Graph

284 Commits

Author SHA1 Message Date
Anderson Lizarazo Tellez
d6e4990425 Escape parentheses from titles when searching for backlinks 2023-10-30 11:28:44 -05:00
Thomas Lambert
3fd50c62c1 fix: allow insert_link to newfile (closes #286) 2023-10-12 09:23:44 +02:00
Christopher Sams
1b00802aa0 Fix FollowLink when searching tags.
When FollowLink is called from the show_tags picker, it searches for the
word that was under the cursor instead of the selected tag. This PR
changes FollowLink so it instead searches for the selected tag.

Signed-off-by: Christopher Sams <cwsams@gmail.com>
2023-08-10 22:14:44 -05:00
Liu Kehong
f2fba2c3cc Allow Chinese characters in tags 2023-07-21 13:35:51 +08:00
Sleepful
96ceab0362 Fixes bug with new callback flow
With the new callback parameter it becomes necessary to fill the nil arguments
of a function if it is to receive the callback as the last argument

to reproduce bug try creating a new weekly note.
2023-07-10 16:09:53 -06:00
Sleepful
c4b60d76c1 correction: wrong var name 2023-07-10 00:23:51 -06:00
Sleepful
2576725041 Update check_dir_and_ask: async for vim.ui.select
vim.ui.select is meant to be used as an asynchronous operation,
in order to do this, it receives a callback as a third argument.

This commit adjusts check_dir_and_ask to leverage the asynchronous
usage of vim.ui.select, as a side effect to make this work, I also
refactored the code that depends on the function in order to leverage
the asynchronous operations.

References:
- https://github.com/stevearc/dressing.nvim/issues/80#issuecomment-1380734202
- https://github.com/stevearc/dressing.nvim
- https://github.com/neovim/neovim/pull/15771

Fixes:
- https://github.com/renerocksai/telekasten.nvim/issues/266

One reason this bug can sneak into the codebase is because the
default unmodified behavior of vim.ui.select is to use the
:Messages section of neovim to ask for input and this UI is
a synchronous blocking operation. However, this is not the
intended usage of vim.ui.select as presented above.
2023-07-06 14:21:23 -06:00
Sleepful
f2f517d0c8 Create subdirs when creating new note
previously it failed with error message
2023-07-05 22:34:48 -06:00
Vadim Nikolaev
75d615e9aa Fix vaults setup and follow_link doc 2023-06-28 15:09:36 +05:00
aidangrigg
68c2f50ca3 fix: TK functions no longer override default registers (#184) 2023-06-04 10:12:58 +10:00
Nestor Arocha
c10a79326e set show_link_counts = false in FindAllTags second prompt
Some users experience an empty dialog after calling show_tags, when the tag has been selected and a prompt with the files that contain the tag should appear.

My understanding is that the flag will call linkutils.generate_backlink_map to get a list of backlinks. I can't see the purpose for the count in the context of showing tags, so I believe that false should be the value for all cases
2023-05-27 12:57:09 +00:00
T. H. Wright
8a8daa0ea1 Add @tag support (#247)
Co-authored-by: T. H. Wright <thwright@redemption.studio>
2023-05-19 19:04:30 +00:00
Thomas Lambert
617469cd06 fix: trailing / issue in image_subdir (closes:#244) 2023-05-09 21:02:50 +02:00
Thomas Lambert
53f6665677 fix: clean trailing / in config paths (fixes:131) 2023-05-09 09:46:15 +02:00
Thomas Lambert
67c5758a13 fix: use vim.fn.system for image paste (#131, #241) 2023-05-02 13:02:34 +02:00
Thomas Lambert
333d0b39fd fix: no empty file when image paste fail (closes #131) 2023-05-02 12:19:12 +02:00
Thomas Lambert
2efa3a51ff fix: error msg for paste image error (#241) 2023-05-01 22:54:36 +02:00
Thomas Lambert
325aa88f1e fix: paste image error with os.execute (closes #241) 2023-05-01 22:48:14 +02:00
Thomas Lambert
4f60377454 refact(dir): set home as default dir for everything (closes #177) 2023-04-29 01:54:47 +02:00
Thomas Lambert
82b00051b9 fix(FollowLink): missing opts in picker call 2023-04-29 01:06:50 +02:00
Thomas Lambert
c90a167a1b refact: templates 2023-04-29 01:03:25 +02:00
Thomas Lambert
a518036fbf refact: grep_escape 2023-04-29 00:44:52 +02:00
Thomas Lambert
9c95eb0e52 refact: date handling 2023-04-29 00:38:15 +02:00
Thomas Lambert
0367fa6a66 refact: file_extension 2023-04-29 00:24:24 +02:00
Thomas Lambert
4e2a433178 refact: uuid 2023-04-29 00:21:09 +02:00
Thomas Lambert
43408481a2 refact: print_error and prompt_title 2023-04-29 00:09:53 +02:00
Thomas Lambert
fb7c5312a7 refact(files): create fileutils 2023-04-29 00:02:19 +02:00
Thomas Lambert
cdffe4c626 refact: move escape and remove alias 2023-04-28 23:55:46 +02:00
Thomas Lambert
37c3b6b2ae chore(utils): rename dateutils 2023-04-28 23:15:57 +02:00
Thomas Lambert
05caa03bdd style: make stylua happy 2023-04-28 23:02:17 +02:00
Thomas Lambert
88d9344b41 chore(utils): reorganize utils 2023-04-28 22:57:41 +02:00
Thomas Lambert
9d2e4fd1e1 chore(pickers): move vault picker file 2023-04-28 22:22:33 +02:00
Thomas Lambert
e2bc0755f3 perf: remove duplicate setup call 2023-04-28 22:10:22 +02:00
Chris Bednarz
147f444748 Fixed issue where notes created from templates would error if _ was previously set. (closes #231) 2023-04-17 20:16:43 +00:00
Thomas Lambert
29f80e3abc fix: greedy renaming (closes #237) 2023-03-29 21:53:21 +02:00
cnshsliu
a5fcd32e1e Ctrl-n to create new note out of finding (closes #141)
* chore(picker): create new note out of finding

* chore(format): format with stylua
2023-03-03 13:34:56 +00:00
Thomas Lambert
b0e9016c35 style: make stylua happy 2023-02-11 23:11:42 +01:00
Thomas Lambert
6290e52f97 fix(followlink): create link with subdirs on the fly 2023-02-11 22:44:04 +01:00
Thomas Lambert
1069d67b9b feat(rename): prefill when renaming (closes #218) 2023-02-11 21:51:25 +01:00
Thomas Lambert
b4b2f9087f style: make stylua happy 2023-02-05 15:47:53 +01:00
Thomas Lambert
9cbbbb6970 fix(img_prev): file path issue (see #174) 2023-02-05 15:39:55 +01:00
Thomas Lambert
ffefc9a9eb fix(insert_link): issues with cursor position (closes #147) 2023-02-05 14:54:09 +01:00
Thomas Lambert
cdbb40de49 fix(gotodate): use proper option to determine note creation 2023-02-03 16:06:19 +01:00
Thomas Lambert
61e7cd0ae3 fix: always use template for goto_today (closes #206) 2023-02-03 15:37:31 +01:00
Thomas Lambert
3238b38485 fix: issue with special char in filename (closes #207) 2023-02-03 15:30:18 +01:00
Thomas Lambert
db0a49c2cd fix: auto load default setup (closes #193) 2023-02-03 15:08:30 +01:00
Rene Schallner
a80db543eb telekasten syntax in previewers on auto_set_syntax 2023-02-03 08:15:50 +01:00
Rene Schallner
d13b9421b7 make stylua happy 2023-02-03 08:10:42 +01:00
zhaogang
0e4eab524c fix:fix show hello when open nvim in topleft 2023-02-03 14:37:42 +08:00
Thomas Lambert
9c02367a2e feat(template): capitalize title and shorttitle 2023-01-25 23:17:35 +01:00