diff options
-rwxr-xr-x | osurl | 3 | ||||
-rw-r--r-- | plugin/spec.vim | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -23,6 +23,9 @@ local patterns = { ["gh#%NONHASH#%WORD"] = "https://github.com/%1/issues/%2", ["gl#%NONHASH#%WORD"] = "https://gitlab.com/%1/issues/%2", ["bt#%NONHASH#%WORD"] = "https://bitbucket.org/%1/issues/%2", + ["sh#%NUM"] = "http://sourecforge.net/support/tracker.php?aid=%1", + ["shb#%NONHASH#%NUM"] = "https://sourceforge.net/p/%1/bugs/%2/", + ["shp#%NONHASH#%NUM"] = "https://sourceforge.net/p/%1/patches/%2/", ["lp#%NUM"] = "https://launchpad.net/bugs/%1", ["rh#%NUM"] = "https://bugzilla.redhat.com/show_bug.cgi?id=%1", } diff --git a/plugin/spec.vim b/plugin/spec.vim index 87ae530..b80378d 100644 --- a/plugin/spec.vim +++ b/plugin/spec.vim @@ -1,6 +1,9 @@ function! ReplaceURLs() s!https://github.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gh#\1#\3!e s!https://gitlab.com/\(.*\)/\(issues\|pull\)/\(\d\+\)!gl#\1#\3!e + s!https://\(sourceforge\|sf\).net/support/tracker.php?aid=\(\d\+\)!sh#\2!e + s!https://\(sourceforge\|sf\).net/p/\(.*\)/bugs/\(\d\+\)/!shb#\2#\3!e + s!https://\(sourceforge\|sf\).net/p/\(.*\)/patches/\(\d\+\)/!shp#\2#\3!e s!https://bitbucket.org/\(.*\)/issues/\(\d\+\)!bt#\1#\2!e s!https://build.suse.de/request/show/\(\d*\)!bds#\1!e s!https://build.opensuse.org/request/show/\(\d*\)!bdo#\1!e |