Opening a recently Downloaded Files

21 views
Skip to first unread message

wayfare

unread,
Aug 16, 2012, 11:34:24 PM8/16/12
to vimiu...@googlegroups.com
As you all know, recently downloaded files are placed on the bottom left corner of the browser.
I would like a keybinding that can open those files(that is how much I rely on Vimium now haha).

I am going to give it a shot but I would really appreciate some help or ideas. I am still new to coffeescript
syntax and contributing to opensource projects. :)

Thanks! 


Phil Crosby

unread,
Aug 17, 2012, 3:30:16 AM8/17/12
to vimiu...@googlegroups.com
Hey wayfare, that would be a great feature. I suspect that Chrome does not give you programmatic access to downloaded files, so do investigate whether it's possible before diving in too deeply. See the Chrome extension docs here.

Jay Chae

unread,
Aug 19, 2012, 12:15:15 AM8/19/12
to vimiu...@googlegroups.com
Hi Phil,

Thanks for the link! I was just thinking how I can possibly implement the functionality.
The raw solution I came up was,

1. Open a tab with path  chrome://downloads/  , which lists all the recent downloaded files.

2. We can send a message using chrome.tabs.sendMessage method. The script
will simulate clicking the link to the first downloaded file on the page.

3. Once it's clicked, we can close the tab with chrome://downloads/   .


That was just my raw thinking. Please give me any feedback you have!


-- 
Jay Chae
Sent with Sparrow

Phil Crosby

unread,
Aug 19, 2012, 12:54:53 PM8/19/12
to vimiu...@googlegroups.com
Hey Jay, you can't simulate clicks on tabs that Vimium is not running on, and Vimium can't run on chrome:// tabs due to security restrictions.
Reply all
Reply to author
Forward
0 new messages