diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2023-10-19 16:44:40 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2023-10-19 16:56:22 +0200 |
commit | bb860e45dcd023a555b579edd32b206e6b7c6625 (patch) | |
tree | 98a1bb65ca6a74b5a1ff9a497a0aee9ac548e409 | |
parent | d3f64d60976eadfccf631abd76bb95fe7434ccec (diff) | |
download | vis-jump-bb860e45dcd023a555b579edd32b206e6b7c6625.tar.gz |
Character ~ (tilda) could be legitimate part of URL as well.
-rw-r--r-- | init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -18,7 +18,7 @@ M.get_query = function() local str = vis.win.file.lines[line] local len_str = string.len(str) - local URLchars = '[^a-zA-Z0-9%?._=+;&/:@#!-]' + local URLchars = '[^a-zA-Z0-9~%?._=+;&/:@#!-]' local to = str:find(URLchars, pos) if to == nil then to = len_str else to = to - 1 end local from = str:reverse():find(URLchars, len_str - pos + 1) @@ -49,6 +49,7 @@ vis:map(vis.modes.NORMAL, "gx", function() local cur_word = M.get_query() -- https://bugzilla.suse.com/show_bug.cgi?id=1130840 -- https://bugs.freedesktop.org/show_bug.cgi?id=103807 x + -- https://git.sr.ht/~exec64/imv -- https://www.damejidlo.cz/potrefena-husa-vinohrady -- gh#python/cpython#7778 or bpo#34032 -- (https://src.adamsgaard.dk/) |