We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22557e7 commit 553f10cCopy full SHA for 553f10c
taskwiki/main.py
@@ -301,7 +301,18 @@ def task_info_or_vimwiki_follow_link():
301
column <= line.find(']]') + 1
302
])
303
304
- if inside_vimwiki_link:
+ # Detect if the cursor stands on a vimwiki markdown syntax link,
305
+ # if so, trigger it
306
+ inside_vimwiki_md_link = all([
307
+ '[' in line,
308
+ ']' in line,
309
+ '(' in line,
310
+ ')' in line,
311
+ column >= line.find('['),
312
+ column <= line.find(']') + 1
313
+ ])
314
+
315
+ if inside_vimwiki_link or inside_vimwiki_md_link:
316
vim.command('VimwikiFollowLink')
317
return
318
0 commit comments