Hello,
I had trouble with "18. Remember the last save directory for downloads",
the fix was to change default_directory.path to get_home_directory();
and add a semicolon after the add_hook call, see below.
Also, how do I edit the Wiki for User Tips? I made an account, but page
is Immutable. Any way to add comments to a page? =)
//** remember save directory
//
http://conkeror.org/Tips#Rememberthelastsavedirectoryfordownloads{
let _save_path = get_home_directory();
function update_save_path(info) {
_save_path = info.target_file.parent.path;
}
add_hook("download_added_hook", update_save_path);
suggest_save_path_from_file_name = function (filename, buffer) {
let file = make_file(_save_path);
file.append(filename);
return file.path;
};
}
Hope this helps,
~Michael Zeller
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror