From 383e6980a59bd0a396f3f29077aeede0e89f6c37 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 13 Oct 2013 21:44:02 +0200 Subject: [PATCH] Released version 0.1.10. --- config.mk | 2 +- src/config.def.h | 35 ----------------------------------- src/main.c | 4 ---- 3 files changed, 1 insertion(+), 40 deletions(-) diff --git a/config.mk b/config.mk index f7830f1..b2d6fcb 100644 --- a/config.mk +++ b/config.mk @@ -1,5 +1,5 @@ #----------------user/install options---------------- -VERSION = 0.1.9 +VERSION = 0.1.10 PROJECT = vimb PREFIX ?= /usr/local diff --git a/src/config.def.h b/src/config.def.h index ccfaa68..0719fa7 100644 --- a/src/config.def.h +++ b/src/config.def.h @@ -44,39 +44,4 @@ /* template to run shell command for vimb command :shellcmd */ #define SHELL_CMD "/bin/sh -c '%s'" -/* remove next line if the bookmark file fits to the new format "URLtitle of pagetag1 tag2" */ -#define SHOW_ANNOUNCEMENT - -#define ANNOUNCEMENT "\ - \ -Bookmark file format changed \ - \ - \ - \ -

Bookmark file format changed

\ -

The history file and bookmarks file will now holds also the page titles to serve them in the completion list. This will break previous bookmark files.

\ -

The parts of the history and bookmark file are now separated by \\t char like the cookie file.

\ - \ -// old format
\ -http://very-long.uri/path.html tag1 tag2
\ -http://very-long.uri/path-no-tags.html
\ -
\ - \ -// new format
\ -http://very-long.uri/path.html\\ttitle of the page\\ttag1 tag2
\ -http://very-long.uri/path-no-title.html\\t\\ttag1 tag2
\ -http://very-long.uri/path-no-title-and-no-tags.html
\ -
\ -

What to do?

\ -

\ -If you have no entries in you bookmark you must edit them to fit the new format. This can be done with following 'sed' command.

\ -

Don't forget to backup the bookmark file before running the command.

\ - \ -// replace the first space in earch line of file to \\t\\t if the line haven't already a \t in it.
\ -sed -i -e '/\\t/!{s/ /\\t\\t/}' bookmark
\ -
\ -

If you had no entries in the bookmark file or you changed it successfully, you should remove the '#define SHOW_ANNOUNCEMENT' from config.h file and recompile vimb.

\ - \ -" - #endif /* end of include guard: _CONFIG_H */ diff --git a/src/main.c b/src/main.c index e610f3d..983d01b 100644 --- a/src/main.c +++ b/src/main.c @@ -1111,12 +1111,8 @@ int main(int argc, char *argv[]) init_core(); -#if defined(ANNOUNCEMENT) && defined(SHOW_ANNOUNCEMENT) - webkit_web_view_load_string(vb.gui.webview, ANNOUNCEMENT, "text/html", NULL, NULL); -#else /* command line argument: URL */ vb_load_uri(&(Arg){VB_TARGET_CURRENT, argc > 1 ? argv[argc - 1] : vb.config.home_page}); -#endif /* Run the main GTK+ event loop */ gtk_main(); -- 2.20.1