mgmeyers / obsidian-pandoc-reference-list

Display a formatted reference in Obsidian's sidebar for each pandoc citekey in the active document.
GNU General Public License v3.0
176 stars 9 forks source link

citekey enhancements (auto completion and more) #85

Open osmalpkoras opened 11 months ago

osmalpkoras commented 11 months ago

Hello,

I started using your plugin for Obsidian and found the citekey feature a little lacking, so I quickly made some enhacements:

Still To-Do: [ ] fix displaying citekey commands when they are surrounded by the characters mentioned above (whitespace (of any kind) or the following characters: -, (, ), [, ], {, })

I was able to fix the last issue by changing the preKey variable in parser.ts:64 like this:

const preKey = /[\s()[\]{}\-;]/;

I successfully tested it on my machine. However, since I had no time to dive into how citekeys are displayed, I do not know if this fix has unwanted consequences.

osmalpkoras commented 11 months ago

This partly adresses issue #78

rauchert commented 11 months ago

@osmalpkoras thanks for your hint! I also came up with the same solution to issue #78 but actually without forking the plugin but by only replacing a character in the main.js of the plugin. See the issue...

osmalpkoras commented 10 months ago

Hey @mgmeyers let me know if something needs to be done for this pull request or if I can help with other issues