Commit Graph

294 Commits

Author SHA1 Message Date
Tonitum
ae6473da3d fix: remove hard-coded "weekly" in folder creation prompt (#343) 2024-09-18 18:26:24 +00:00
Tonitum
319276a785 fix: daily/weekly search when the folder is set to the base folder
* refs 321-daily-weekly-picker: feat: added plenary pattern/depth options to address behavior when the weekly/daily folder is configured to the same as the base notes folder

* refs 321-daily-weekly-picker: format: address styling

closes #321
2024-04-22 08:14:27 +00:00
Tonitum
24fd8c1e7e feat: Tab autocompletes with folders in notes home directory (#326)
* refs 293-tab-complete-fix: feat: changing the current working directory when creating a new note to the configured home directory

* refs 293-tab-complete-fix: format(telekasten): removing trailing whitespace in comments

closes #293 
closes #277
2024-04-17 07:33:27 +00:00
andy941
3ef86c924b feat: Add option to choose clipboard program (#322)
* Refactor and add option to choose clipboard program

* Warn user early when clipboard program specified is not executable

closes #320
2024-04-17 07:16:16 +00:00
Tonitum
adbe1ea3c2 Fix journal_auto_open clash with calendar (fixes #324)
* refs journal-auto-open-fix: doc: adding documentation of the journal_auto_open configuration option

* refs journal-auto-open-fix: fix: correcting the behavior of gotodate and gotothisweek when opening a day from the calendar and the journal_auto_open option is set

closes #324
2024-04-16 07:40:29 +00:00
Erik Fasterius
a684d6ebe7 fix: (WIP) allow following line-split links on the first line (#309)
Currently only works when the cursor is on the first line. 
This PR must be followed by a second one that would make it work when the cursor is on the second line. However, this requires significantly more work.
2024-02-27 13:10:16 +00:00
fz0x1
434e74ad30 feat: add xsel for pasting images
* https://github.com/renerocksai/telekasten.nvim/issues/131

- fixed a problem with `xclip` in linux (added `xsel`)

* removed debug info

* xclip
2024-02-26 19:28:46 +00:00
Inom Turdikulov
1f725fca21 feat: add custom media_extensions support (#306)
* Add custom media_extensions support

Customize insert image and preview image files list. This is useful to
add optional filetypes into filtered list (for example
telescope-media-files optionally supporting svg preview)

* Make media_extension option matching to default one
2024-02-26 10:02:22 +00:00
lambtho
872b83f619 Fix: reset register after following external link 2024-02-22 14:52:48 +00:00
Erik Fasterius
d2b7c2c4d4 Fix: Allow disabling <C-n> mapping for note creation in picker (#302)
* Enable config for creation of new note with Ctrl-n

* Add `enable_create_new` documentation
2024-02-21 11:10:00 +00:00
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