plugin file URI handler
Posted: 23.11.2020 17:27
Occasionally it is nice to have quick and simple bookmarks.
Github
This plugin opens file:/// links in CudaText, for example:
Just a filename (last line) will be looked for in the directory of the current file first, then in the directories specified in plugin's config file.
For this to work "links_regex" option needs to be modified:
to
Github
This plugin opens file:/// links in CudaText, for example:
Code: Select all
file:///etc/fstab
file:///c:/WINDOWS/clock.txt
file:///install.inf
For this to work "links_regex" option needs to be modified:
Code: Select all
\\b(mailto:)?\\w[\\w\\-\\.]*@\\w[\\w\\-\\.]*\\.\\w{2,}\\b|\\b(https?://|ftp://|magnet:\\?|www\\.|ftp\\.)\\w[\\w\\-\\.@]*(:\\d+)...
Code: Select all
\\b(mailto:)?\\w[\\w\\-\\.]*@\\w[\\w\\-\\.]*\\.\\w{2}\\b|\\b(https?://|ftp://|file:///|magnet:\\?|www\\.|ftp\\.)\\w[\\w\\-\\.@]*:?(:\\d+)?(/[~\\w\\.\\-\\+\\/%]*)?(\\?[^<>'\"\\s]+)?(\\#[\\w\\-]*)?