$3 uzbl-x-window-id
$4 uzbl_fifo-filename
$5 uzbl_socket-filename
+$6 current page url
+$7 current page title
.. [ script specific ] (optional)
The script specific arguments are this:
* history:
- $6 page url
- $7 page title
$8 date of visit (Y-m-d H:i:s localtime)
* add bookmark:
- $6 page url
- $7 page title
+ none
* download:
- $6 url
+ $8 url of item to download
KNOWN BUGS
- Segfaults when using zoom commands (happens when max zoom already reached?).
timeinfo = localtime ( &rawtime );
strftime (date, 80, "%Y-%m-%d %H:%M:%S", timeinfo);
GString* args = g_string_new ("");
- g_string_printf (args, "'%s' '%s' '%s'", uri, "TODO:page title here", date);
+ g_string_printf (args, "'%s'", date);
run_command(history_handler, args->str);
g_string_free (args, TRUE);
}
GString* to_execute = g_string_new ("");
gboolean result;
g_string_printf (to_execute, "%s '%s' '%i' '%i' '%s' '%s'", command, config_file, (int) getpid() , (int) xwin, fifo_path, socket_path);
+ g_string_append_printf (to_execute, " '%s' '%s'", uri, "TODO title here");
if(args) {
g_string_append_printf (to_execute, " %s", args);
}