obsidian-stack-overflow
obsidian-stack-overflow copied to clipboard
Fetch Stack Oveflow answers and copy paste them directly into Obsidian
The example answer url you used has the ID at the as second last set of numbers.. https://stackoverflow.com/a/72722933/3952024 But now when it is copied from stackoverflow the ID is now...
If adding an url to a new blank document the top HR is treated as the start of the YAML frontmatter. This results in Obsidian displaying `Metadata (Invalid YAML)`. I...
This would be so much easier to use if the plugins command read the copied link from the clipboard rather than having to paste it into the document first.
Just tried this using the following URL, then selecting 'Insert Stack Overflow Answer' from the Obsidian command menu: ``` https://stackoverflow.com/questions/61907922/pine-script-optimize-with-lower-timeframe-backtest ``` Which resulted in the following error in the DevTools...
Currently the code seems to be written to only work for StackOverflow, rather than any site in the StackExchange network: https://github.com/bramses/obsidian-stack-overflow/blob/4f2a556dcb7d4a33fc062ecb2234001ccdf15581/main.ts#L113-L116 https://github.com/bramses/obsidian-stack-overflow/blob/4f2a556dcb7d4a33fc062ecb2234001ccdf15581/main.ts#L85 It would be cool if it worked for...
Currently it looks like the code can only extract answers, but it would be cool if it was also possible to capture questions in a similar way. This would make...
Just had a brief skim through the code and noticed that you're treating the `url` as a `string` in `extractAnswerId`, then doing string manipulation to parse out the various bits....