Ihor Radchenko <yanta...@posteo.net> writes:
What do you think about allowing *all* the link types to have a form of <type>+<application>:<path>::<search option>? Then, the parser will split all the typed links into :type, :application, :path = "<path>::<search-option>", :path-no-search-option = "<path>", and :search-option.
I think this would be a good thing to do. Because other path types also incorporate search option in their own ways (e.g. org-pdftools using pdf:<file-path>::<page-number> format). So, this is a needed feature.
Maybe we can also take this opportunity to use # as an alternative to :: and naturally support https://example.com/#anchor.
I am not sure about that. I think it would be breaking a established approach. Using :: doesn't seem to have any demerits. Furthermore, as far as I know, file names in all major OS (Windows, macOS, and Linux) allow # character in the filenames but macOS and Windows don't allow : character. In that aspect : is even better as it won't interfere with file paths.