diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2021-11-24 14:04:15 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2021-11-24 14:04:15 +0100 |
commit | 095329fc4bf7d5ecea7065a6889b9928bcdf5789 (patch) | |
tree | 030dd30090b20acd8bfb48bc96be6de4a317d142 | |
parent | b39ab292b97acccce85b72c6819437912e24ccd9 (diff) | |
download | vis-jump-095329fc4bf7d5ecea7065a6889b9928bcdf5789.tar.gz |
Just to make abbrevURL as a symlink to vim-suse package.
l---------[-rwxr-xr-x] | abbrevURL.lua | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/abbrevURL.lua b/abbrevURL.lua index 98e0117..11f2878 100755..120000 --- a/abbrevURL.lua +++ b/abbrevURL.lua @@ -1,39 +1 @@ -#!/usr/bin/lua -local str = '' - -if #arg == 0 then -str = io.read("*l") -else -str = arg[1]:lower() -end - -str = str:gsub("https?://github.com/(.*)/issues/(%d+)", "gh#%1#%2") -str = str:gsub("https?://github.com/(.*)/pull/(%d+)", "gh#%1#%2") -str = str:gsub("https?://gitlab.com/(.*)/-/issues/(%d+)", "gl#%1#%2") -str = str:gsub("https?://gitlab.com/(.*)/issues/(%d+)", "gl#%1#%2") -str = str:gsub("https?://gitlab.com/(.*)/pull/(%d+)", "gl#%1#%2") -str = str:gsub("https?://sourceforge.net/support/tracker.php%?aid=(%d+)", "sh#%1") -str = str:gsub("https?://sf.net/support/tracker.php%?aid=(%d+)", "sh#%1") -str = str:gsub("https?://sourceforge.net/p/(.*)/patches/(%d+)/", "shp#%1#%2") -str = str:gsub("https?://sourceforge.net/p/(.*)/bugs/(%d+)/", "shb#%1#%2") -str = str:gsub("https?://sf.net/support/p/(.*)/patches/(%d+)/", "shp#%1#%2") -str = str:gsub("https?://sf.net/support/p/(.*)/bugs/(%d+)/", "shb#%1#%2") -str = str:gsub("https?://bitbucket.org/(.*)/issues/(%d+)/", "bt#%1#%2") -str = str:gsub("https?://build.suse.de/request/show/(%d+)", "ssr#%1") -str = str:gsub("https?://build.opensuse.org/request/show/(%d+)", "sr#%1") -str = str:gsub("https?://bugzilla.opensuse.org/show_bug.cgi%?id=(%d+)", "boo#%1") -str = str:gsub("https?://bugzilla.opensuse.org/(%d+)", "boo#%1") -str = str:gsub("https?://bugzilla.suse.com/show_bug.cgi%?id=(%d+)", "bsc#%1") -str = str:gsub("https?://bugzilla.suse.com/(%d+)", "bsc#%1") -str = str:gsub("https?://bugzilla.redhat.com/show_bug.cgi%?id=(%d+)", "rh#%1") -str = str:gsub("https?://bugzilla.redhat.com/(%d+)", "rh#%1") -str = str:gsub("https?://bugzilla.mozilla.org/show_bug.cgi%?id=(%d+)", "bmo#%1") -str = str:gsub("https?://bugzilla.mozilla.org/(%d+)", "bmo#%1") -str = str:gsub("https?://bugs.documentfoundation.org/show_bug.cgi%?id=(%d+)", "tdf#%1") -str = str:gsub("https?://bugs.documentfoundation.org/(%d+)", "tdf#%1") -str = str:gsub("https?://jira.suse.com/browse/(%a+)", "jsc#%1") -str = str:gsub("https?://bugs.python.org/issue(%d+)", "bpo#%1") -str = str:gsub("https?://bugs.launchpad.net/.+/%+bug/(%d+)", "lp#%1") -str = str:gsub("https?://www.python.org/dev/peps/pep%-(%d+)/?", "pep#%1") - -print(str) +../../../../../.local/share/nvim/site/pack/packer/start/vim-suse-changes.git/abbrevURL
\ No newline at end of file |