added plugin Paste asciidoc link
@FichteFoll please, review
You should apply the link replacement to all regions (for sel in self.view.sel():) and not just the first one. That aside, views can actually have "no selections" in which case your code would raise an IndexError.
By the way, you could also implement this as a macro (insert_snippet -> paste), but you're less flexible with specifying the new selections that way.
You should also provide the same commands as key bindings for all OSes and not just OSX.
@FichteFoll done
What about the all selections part?
@gAmUssA, can you address these concerns?
You should apply the link replacement to all regions (
for sel in self.view.sel():) and not just the first one. That aside, views can actually have "no selections" in which case your code would raise an IndexError.