Re: [hackers] [surf] Add prompts for SETPROP || Quentin Rameau

From: Vasily Kolobkov <polezaivsani_AT_openmailbox.org>
Date: Wed, 10 May 2017 11:44:39 +0200

[2017-05-10 09:38] ssd_AT_mailless.org
> hi Quentin,
>
> * Quentin Rameau 2017-05-09 10:05
> > Just out of curiosity, what kind of shortcuts do you use there?
>
> shortcuts to bookmarks.
>
> I maintain a bookmarks file in a format borrowed from uzbl long ago when
> I switched to surf. It's formatted like
>
> <url> <title>\t[:<shortcut> ][<tag1> [<tag2>]]
> e.g.
> http://suckless.org suckless :s code
> http://dwm.suckless.org suckless :dwm code
> http://surf.suckless.org surf browser code
> http://st.suckless.org st terminal emulator code
> http://%s.suckless.org suckless :sl code good
> https://startpage.com/do/search?query=%s :default
> https://startpage.com/do/search?query=%s :sp
>
> then, my SETURI invokes a script that does one of
> - return the URI corresponding to a shortcut, if the first argument is a
> shortcut (substituting the rest of the arguments for %s in the URI),
> - return the `:default` URI with all arguments (i.e. $_AT_) substituted for
> %s,
> - return the argument itself if it's an URI.
>
> I have also some tooling for filtering on tags (rather than shortcuts),
> stripping domains, etc. I may find some time to organise them in a
> public repo if anyone is interested.

Couldn't go by this small, usefull tooling! I'm doing pretty much
the same, but with a shell script i'm invoking via dmenu. It then
reads a file similar to that of yours and execs surf with a final
uri.

Super nice feature to quickly fire up wikis/dictionaries/search
queries etc.
Received on Wed May 10 2017 - 11:44:39 CEST

This archive was generated by hypermail 2.3.0 : Wed May 10 2017 - 11:48:16 CEST