Hi nibbles (and pancake et al):
Looks even better (once more)! But you still don't store stuff to a local
history file, except when one explicitly bookmarks the page. Two of the
goals of the script, I think, are to:
(1) store all find transactions to a find.history.txt file.
(2) store all set uri transactions to a history.txt file, provided they are
successful. also, i like storing my set uri transactions prior to any
processing, e.g., store "g foobar" rather than the ugly looking
"http://www.google.com/search?q=foobar".
These might be something that you and pancake are implicitly against or it
might be something that you'all have overlooked. If it is implicit, then
I'm fine with that, in which case I'll offer up a surf2.sh to the wiki,
which will look remarkably similar to surf.sh but with a few extra lines of
code here and there (cf. my previous script). If it is something overlooked,
then can we merge in these LOC (again cf. the previous script, or I'll send
a surf2.sh)?
Best,
Peter
-- sic dicit magister P. http://individual.utoronto.ca/peterjh/ On Fri, 2 Apr 2010, Nibble wrote: > On Thu, 1 Apr 2010 21:41:48 -0400 (EDT) > Peter John Hartman <peterjohnhartman_AT_gmail.com> wrote: > >> The code looks even better. Here's some more additions and some >> subtractions. >> >> * I didn't like the "tag" business with the bmarks. It complicates >> with little payoff. >> >> * You never in fact had entries being written to history. I store >> both smart prefix entries, e.g., "g foobar foo" and ordinary entries >> e.g. "http://www.foobar.org" >> >> * I still need to re-implement the code to verify that the entered >> url in fact resolved before storing that entry into the history >> file. That's in the old script. >> >> * I have a history to the find as well. > > Hi Peter, > > I think we should keep the script as simple as possible. In fact, I > simplified it even more and uploaded it to the surf wiki (you can get > the last version of the script at http://nibble.develsec.org/get/surf.sh > while the wiki is not updated). > > In this version: > * The field 'tag' is not stored in bookmarks, I use to search bookmarks > by url (or I simply use delicious for public bookmarks) > * The option b in ^g has been removed (this function is already done by > dmenu) > * The current url is passed to dmenu with ^G so it can be easily edited. > * Instead of storing all the search history, I get the last keyword and > pass it to dmenu (^s). > * The function s_set_uri has been replaced by the generic s_xprop > * More code clean up. > > Kind regards, > -- nibble >Received on Fri Apr 02 2010 - 13:32:41 UTC
This archive was generated by hypermail 2.2.0 : Fri Apr 02 2010 - 13:36:03 UTC