Re: [dev] [surf][patch]history patch update

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Sun, 15 Mar 2015 15:54:03 +0100

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
Received on Sun Mar 15 2015 - 15:54:03 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 15 2015 - 16:00:14 CET