Commit Graph

493 Commits

Author SHA1 Message Date
Thomas Lambert
c9fa6e1cb4 doc: fix undocumented @tag notation (closes #273) 2023-07-25 22:07:57 +02:00
Thomas Lambert
70a01f8d80 doc: fix small errors (closes #273) 2023-07-25 11:27:10 +02:00
lambtho
cd6e2af227 Merge pull request #274 from cnshsliu/main
Allow Chinese characters in tags
2023-07-25 08:44:46 +00:00
Liu Kehong
f2fba2c3cc Allow Chinese characters in tags 2023-07-21 13:35:51 +08:00
lambtho
4a5e57eee9 Merge pull request #268 from Sleepful/main
Create subdirs when creating new note
2023-07-11 11:13:37 +00: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
lambtho
3f14aad233 Merge pull request #267 from thw26/patch-1
Update README.md
2023-07-07 08:16:21 +00: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
b6ff784fbb Update README with correct configuration name 2023-07-06 14:20:47 -06:00
Sleepful
f2f517d0c8 Create subdirs when creating new note
previously it failed with error message
2023-07-05 22:34:48 -06:00
T. H. Wright
9eec9327c6 Update README.md
Resolves #250.
2023-07-05 12:16:44 -04:00
lambtho
eb1d228e8d Merge pull request #265 from defntvdm/main
Fix vaults setup and follow_link doc
2023-07-03 13:56:02 +00:00
Vadim Nikolaev
75d615e9aa Fix vaults setup and follow_link doc 2023-06-28 15:09:36 +05:00
lambtho
36dad26929 Merge pull request #259 from aidangrigg/yank-register-fix
fix: TK functions no longer override default registers (closes #184)
2023-06-04 19:31:42 +00:00
aidangrigg
68c2f50ca3 fix: TK functions no longer override default registers (#184) 2023-06-04 10:12:58 +10:00
lambtho
557b960887 Merge pull request #253 from nesaro/main
fix show_tags for some users
2023-05-30 07:26:44 +00: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
Lars Van Cauter
82368ff84e fix: keybind -> keymap (#240) 2023-05-01 16:03:06 +00: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
77b0c656d8 chore(wiki): remove wiki submodule 2023-04-28 23:13:45 +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
EJ
78de46aa5b doc: update advanced usage, link to wiki (#232) 2023-03-08 20:04:29 +00: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
d44fa0c6d9 doc: fix indication for default home directory (closes #228) 2023-03-01 15:21:46 +01:00
maxim-h
7a3091b68f fix typo in README.md (#227) 2023-02-26 09:08:31 +00:00
Thomas Lambert
c0fe9c82e4 doc: fix types (closes #223) 2023-02-20 09:04:57 +01:00
Thomas Lambert
d72933ddbe doc(readme): add synctodo link 2023-02-14 09:17:39 +01:00