issue294: Be able to select the download directory programmatically

Priority: wish Status: chatting
Files
File name Uploaded Type Edit Remove
replacemap.patch dclemente, 2010-08-30.10:54:48 text/x-patch
Messages
msg678 (view) Author: dclemente Date: 2010-08-30.10:54:48
Now, when you want to save a link or download a file, the current directory ("cwd" variable) is suggested
as the place to save the file in.
I would find interesting to select one between different output folders, or select the output folder
according to the downloaded file's extension.

Philip Jackson made a patch to do this: http://www.mail-archive.com/conkeror@mozdev.org/msg01357.html
I attach a version which applies cleanly to the current git tree.

This change is non-obtrusive; it starts to work when you set the new variable. Not much tested.
msg683 (view) Author: retroj Date: 2010-08-31.16:43:09
notes: download_replace_map would need to be an ordered collection, and the search would need to break
after finding a match.
msg685 (view) Author: retroj Date: 2010-08-31.17:07:33
i wonder why we only dispatch on one piece of information -- the filename -- to determine the download
directory.  dispatching on other criteria, like source url, would be equally useful.
History
Date User Action Args
2010-08-31 17:07:33retrojsetmessages: + msg685
2010-08-31 16:43:09retrojsetstatus: unread -> chatting
messages: + msg683
2010-08-30 10:54:48dclementecreate