This is actually an interesting question so I couldn't resist throwing
together a quick script :)

```
#!/bin/sh

search() {
    local token=$1
    local url=$2
    if curl -s "$url" | grep "$token" >/dev/null ; then
        echo "hit $url"
    fi
}
export -f search
cut -d' ' -f1 ~/.config/qutebrowser/bookmarks/urls | parallel search "$1" {}
```

Its pretty naive and has plenty of room for improvement, but it seems to
work for a few simple tests I threw at it.

-Ryan

On Wed 03/20/19 05:14PM, Stephen Davies (sdavies) wrote:
> 
>     Thanks to you both for your replies.
> 
>     Hey, as long as we're talking about dreamy enhancement requests, here's 
> one
> that I'm sure would be very hard to implement, but which I think would be a
> killer feature. I'd love a way to search for text within "all pages that I've
> bookmarked." (So not just the title of the pages, but their text.)
> 
>     Don't know if it'd be easier to snapshot and store the text of every page
> as it's bookmarked, or to re-fetch the pages afresh whenever the user does the
> aforementioned kind of search. There are pros and cons to each, but either one
> would be a godsend.
> 
> - Stephen
> 
> Florian Bruhin wrote:
> > Hey,
> > 
> > On Wed, Mar 20, 2019 at 12:16:14PM -0400, Ryan Roden-Corrent wrote:
> > > Bookmarks appear in the same order they appear in your bookmarks file.
> > > New bookmarks are appended to the end, so they will actually appear
> > > last. You can order the file however you like to change the order in the
> > > qutebrowser UI, but newly added bookmarks will always go to the end.
> > > 
> > > For what its worth, I rarely notice the order as I tend to rely on
> > > text-filtering rather than scrolling.
> > 
> > That's true for the :open completion, but not for qute://bookmarks which
> > Stephen was referring to - that page indeed sorts by title only:
> > 
> > https://secure-web.cisco.com/1ea8RLb1TXmxzxV0AaAIcZKknrIOT8j5CsdSJ2mMo8IJMoTbElws85qMqhofkHwNb8QBRGKzkmwwW2362q8XnGxCY46Q7srYHgEpYdH7ZHnjAnNxbzXLlCt-DZk-BDZrOw8XYFWvS2PIM2bXzrJlhP-VHLBm2BUii_mPtOzG0Rp-jwWLf9No57GR_23NfFX0aBz40PGqIMpPxoEJ8sztBYEENM3hrNnPk9yajlx_htJxFNIYYFg8-HEfh-C7Fj3I2vLgMEeTBJ-GYaMr8b_vmqnLKvoQ6dIdpOsi9nGgdi0lpIVid0_dgDFg7QNX9vr9e-DfAx3NnFbvRn82XynMAkw/https%3A%2F%2Fgithub.com%2Fqutebrowser%2Fqutebrowser%2Fblob%2Fv1.6.1%2Fqutebrowser%2Fbrowser%2Fqutescheme.py#L178-L181
> > 
> > Ideally the page itself would allow changing the sort order interactively. I
> > guess many of the qute:// pages could need some love - I opened an issue 
> > with
> > some ideas: 
> > https://secure-web.cisco.com/1GSehjjHGWDpdtTqWydfDlh5Z0iNtR7ag7QFR32QhISaY0lQHvdZe72-TzCj-yzH2sTCzKAQd0zS3pcB78gUz-NmDEVXXWMANj9VXtCwZ2j2PJ_u9JO_9SjtcYiiz31WCG5_vspYr8ZCpxk1sLmugvdrwSxnFjvvIPTGkn6mvIAs9VJRSfPOf4-hiInVYA10EvDoUfcfpj4z1dhfyfWR58I7TGmhKzmoTwd8J1t7zq0MrvftTSzzN7HvJZ6EcUiKoDeLpLlNAna63ts3GbNAbNFYIwGYi5qfaKD823Vxd_GE2Mc2qfz_SW-oKrCRc2G9837p3ln3vK9DQHyrz7SWEmg/https%3A%2F%2Fgithub.com%2Fqutebrowser%2Fqutebrowser%2Fissues%2F4662
> > 
> > Florian
> > 
> > -- 
> > https://secure-web.cisco.com/1ZfjsCINYDU4PEppeN3EAeQtoK5r7Ibg4rZIQVlvAbq_A2l5u8duKgYpafWPXFYXwBAZFAmhlMgmoC_SA_4FDnorEKLZ43nFOtuHAe3asyq7lKtab5pJzgFoUtZasUYF1zUFM6MuNNWC7ngnWp5Fmux1gGK4DbeSWuqZ9o9CLWn4aApLIzA43KWNP9De9r8i1wvhsjY6KhYHdnv-LzSxPtkLgcIWdDcz2Fvjm-XdSCG1yqfsKPA69DScAMcqp0cxXOVaqspBUbw9l8ITp4e0If1vuBJqSTN-ZdwyvKtJ4-cq0Z6jLsdfYdEnAGGP3z7_qAEF7f1Jcu7x93HantXficg/https%3A%2F%2Fwww.qutebrowser.org
> >  | m...@the-compiler.org (Mail/XMPP)
> >    GPG: 916E B0C8 FD55 A072 | 
> > https://secure-web.cisco.com/1eugnSH_hyEpLN1D1d9OuimhbXTRzVHHIJyEcnvZIX9bT9B7YL9U8XN726-Teqt2EH-H-BjvW1xFpAo-MJ3vLdoFrkgrZ_denRy-ZOJwc73rYsO9le8d6NNf5uWXONMNcmNsbtn0H_e2j9A_ywfzBfxFi5PFB3__Jgni4Nqwrn2rjym7pfUAkrkSd_Tp72rDTt4Ybahn1WzX8Z_ajvNmf-s6SL2GfXSOjS34a0vyWaIt3J-A-WmDH-C_3dWfEwNZub3vp61rRPgL1DlPooCfwpVbRfDB9FieTBOvDxAaGj7bh7rFwsrvSXL-G0qlSolR60XymaTzaBBtusPUOe5cNoA/https%3A%2F%2Fthe-compiler.org%2Fpubkey.asc
> >          I love long mails! | 
> > https://secure-web.cisco.com/1JGNGBdKBO0dpCvng_NOODtQ5LuFmCDX0AquTeDQlFLdHRnFrM02y8oV24zADifxcITzujRtzdUzQIta3q4NYDB6qSP8dnPL646cxR5C2bgTQURCgyaWWuCYoCSfp5rIUxE5xm-jGykYzJRPp9eRIXtaQ6GKDbpR0MGBGkVma34pXQPd569eSfg2Np-onjubD2zlpmNDZGUk4M5OHkzfDeFUe0u_MoJMpEhxOsVsvvnRbP_lB6o9exAUWrWv8NCkDRve5l-55IDP4Ma18S7Tg5PeybPX7CAcl3vbi2jl2HUsZEZ44BZNspJOg712g0aoOagR-au96Yr8keHXUOtNxfw/https%3A%2F%2Femail.is-not-s.ms%2F
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to