Commit Graph

510 Commits

Author SHA1 Message Date
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
lambtho
8c2b3889eb Merge pull request #290 from ALizarazoTellez/backlinks-title-parentheses
Escape parentheses from titles when searching for backlinks
2023-12-11 12:15:26 +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
lambtho
bd5d323581 Merge pull request #276 from ekliot/main
Make aliased wikilink highlighting consistent
2023-09-08 09:44:03 +00:00
Elijah Kliot
bf011af80b move to doc 2023-09-07 23:06:46 -06:00
Elijah Kliot
935db31663 deprecation note 2023-09-07 23:03:09 -06:00
lambtho
584783fdbd Merge pull request #282 from csams/issue-281
Fix FollowLink when searching tags.
2023-08-11 08:49:23 +00: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
lambtho
786a35a6b8 Merge pull request #280 from olejech/main-1
doc: fix typo in config
2023-08-09 12:31:24 +00:00
Oleg
273f49004a Update telekasten.txt 2023-08-09 10:47:57 +03:00
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
ekliot
3b901728a2 fix highlighted aliased links concealment 2023-07-23 23:55:02 +00:00
ekliot
e7ea7af18e update documentation 2023-07-23 23:24:19 +00:00
ekliot
d030b52e2d make aliased wikilink highlighting consistent 2023-07-23 23:16:04 +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