When having selected text AND pressing square bracket in order to create link, automatically reduce selection by leading and trailing whitespace characters (newline, space, tab,…) so that they are preserved outside of link, not inside.
Now I need to move cursor very precisely when creating link from existing text.
- Add a command to turn this functionality off in case, someone wants to write some code in Obsidian editor.
- Or perhaps do not trigger this functionality in code-blocks.
- Might apply also to trailing colon “:”, dot “.”, … (for links at the end of sentence)
- and perhaps also when other paired symbols (instead of square brackets) are pressed.