More information and some screenshots of vimb browser in action can be found on
the [vimb project page][vimb].
-## changedd bookmark and history file format
-The history file and bookmarks file will now holds also the page titles to
-serve them in the completion list. This changed the file format and will break
-previous bookmark files. The history file will still be usable also with the
-latest changes, but the bookmark file must be adapted to the new file format.
-
-```
-// 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<tab>title of the page<tab>tag1 tag2
-http://very-long.uri/path-no-title.html<tab><tab>tag1 tag2
-http://very-long.uri/path-no-title-and-no-tags.html
-```
-
-The parts of the history and bookmark file are now separated by `<tab>` or
-`\t` char like the cookie file. Following `sed` command can be used to apply
-the required changes to the bookmark file. **Don't forget to backup the 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
-```
-
## features
- vim-like modal
- vim-like keybindings
#define MAXIMUM_HINTS 500
+
+#define ANNOUNCEMENT "\
+<!DOCTYPE html><html lang=\"en\" dir=\"ltr\"><head> \
+<title>Bookmark file format changed</title> \
+<style media=\"all\">body{width:60em;margin:0 auto}h1{color:#f90}code{display:block;margin:0 2em}</style> \
+</head> \
+<body> \
+<h1>Bookmark file format changed</h1> \
+<p>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.</p> \
+<p>The parts of the history and bookmark file are now separated by <b>\\t</b> char like the cookie file.</p> \
+<code> \
+// old format<br/> \
+http://very-long.uri/path.html tag1 tag2<br/> \
+http://very-long.uri/path-no-tags.html<br/> \
+</code> \
+<code> \
+// new format<br/> \
+http://very-long.uri/path.html<b>\\t</b>title of the page<b>\\t</b>tag1 tag2<br/> \
+http://very-long.uri/path-no-title.html<b>\\t\\t</b>tag1 tag2<br/> \
+http://very-long.uri/path-no-title-and-no-tags.html<br/> \
+</code> \
+<h2>What to do?</h2> \
+<p> \
+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. </p> \
+<p><b>Don't forget to backup the bookmark file before running the command.</b></p> \
+<code> \
+// replace the first space in earch line of file to <b>\\t\\t</b> if the line haven't already a \t in it.<br/> \
+sed -i -e '/\\t/!{s/ /\\t\\t/}' bookmark<br/> \
+</code> \
+<p>If you had no entries in the bookmark file or you changed it successfully, you should remove the '#define ANNOUNCEMENT' from <i>config.h</i> file and recompile vimb.</p> \
+</body> \
+</html>"
+
#endif /* end of include guard: _CONFIG_H */
init_core();
+#ifdef 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();