Sébastien Poher wrote: > Thanks for that, that's a clean way to handle both history and searches and > it works well. The only problem I have is that it messes with the bookmarks > patch that uses SETPROP, so I was thinking about something like: > > #define SETURI { \ > .v = (char *[]){ "/bin/sh", "-c", \ > "prop=\"`xprop -id $0 _SURF_URI" \ > " | cut -d '\"' -f 2" \ > " | tac - \"${HOME}/.surf/bookmarks\" \"${HOME}/.surf/history\"" \ > " | awk '!x[$0]++'" \ > " | dmenu -i -l 10`\"" \ > " && xprop -id $0 -f _SURF_GO 8s -set _SURF_GO \"$prop\"", \ > winid, NULL \ > } \ > } > > So that one can have access to its bookmarks at the top of the dmenu list as > well as its history whithout the need of a superfluous shortcut.
Heyho Sébastien, well I don't use bookmarks (yet?), but that seems to be the canonical solution. --Markus