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 9542db2Copy full SHA for 9542db2
taskwiki/main.py
@@ -301,7 +301,19 @@ 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
+ line.find('[') < line.find(']('),
311
+ line.find('](') < line.find(')'),
312
+ column >= line.find('['),
313
+ column <= line.find(')') + 1
314
+ ])
315
+
316
+ if inside_vimwiki_link or inside_vimwiki_md_link:
317
vim.command('VimwikiFollowLink')
318
return
319
0 commit comments