Loop through urls on screen and copy to clipboard

Replace url detection heuristics with a DFA, enabling urls that span
multiple lines. Also fix the selection not to use snapping so that urls
are selected exactly.
This commit is contained in:
Santtu Lakkala
2022-02-16 20:34:20 +02:00
committed by Anthony Debucquoy
parent 5bfe4b3592
commit 77ce1529ac
3 changed files with 95 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY, XK_l, copyurl, {.i = 0} },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
};