Re: [dev] [surf] Bookmarks patch for 0.2

From: Moritz Wilhelmy <crap_AT_wzff.de>
Date: Mon, 2 Nov 2009 01:04:32 +0100

Would you please add it to the surf page in the suckless wiki?

On Fri, Oct 23, 2009 at 08:52:33PM +0200, Tadeusz Sośnierz wrote:
> On 23-10-2009 19:26:50, Julien Pecqueur wrote:
> > Le mardi 20 octobre 2009 à 02:44:53, Tadeusz Sośnierz a écrit :
> > > Hello,
> > > I wrote some patch for bookmark handling, attached. Everything is driven
> > > by the right-click menu. Sadly, I had no idea how to include some labels
> > > for the urls. Also, I'm rather beggining with C, so I'm sorry for any
> > > eye-stabbing stupidities you may encounter, and please report
> > > them to me.
> > >
> > > Hope You'll like it.
> >
> > I'd have the same idea few weeks ago and i wrote a very-simple bookmarks
> > management implementation for surf (using dmenu). However, your idea of
> > displaying bookmarks list in a about:bookmarks page is smartest :)
> >
> > > +void
> > > +addbookmark(Client *c, const Arg *arg) {
> > > + char *bmark_uri;
> > > + FILE *f;
> > > + bmark_uri = geturi(c);
> > > + f = fopen(bmarksfile, "a+");
> > > + fprintf(f, "%s\n", geturi(c));
> > > + fclose(f);
> > > +}
> >
> > The pointer *bmark_uri is not used in the function.
>
> Right, my bad. Thanks for noticing!
>
> > Good job, i'll be apply your patch this evening!
>
> I'm glad you like it.
>
> Regards
>
> --
> ===========================================================
> () ascii ribbon campaign - against html e-mail
> /\ www.asciiribbon.org - against proprietary attachments
>
>
Received on Mon Nov 02 2009 - 00:04:32 UTC

This archive was generated by hypermail 2.2.0 : Mon Nov 02 2009 - 00:12:10 UTC