wildeyes / FastPick

Add keyboard-shortcuts in chrome to Google Search!
8 stars 4 forks source link

Comments and articles #48

Open houshuang opened 9 years ago

houshuang commented 9 years ago

So I had some more fun with this, because I love the extension. Several of the websites I waste my time on have articles and comments. Often I want to open both, sometimes just the article, and sometimes just the comment. I added a new articlesel to the database (optional), and reconfigured the default bindings. I think I want to open in a separate tab more often (time will tell if this works out), so I switched the meaning of shifted and non-shifted. However, on a page with commentsel, char will by default open both article and comment. Using - and = as prefixes, I can control opening just article or just comment.

Example

I'm happy to share the code but right now it's just ugly JS, and it's not very difficult anyway. If I get time, I might try to implement it in nicer CoffeeScript, if you're interested in a pull-req. I might also be interested in playing around with a config panel to avoid having to recompile just because we're changing the database, set whether non-shifted opens inline or in new tab, etc.

wildeyes commented 9 years ago

Hey @houshuang, I'll work on it as soon as possible. Really, really nice you found the extension useful, hope I can make it even more useful for you.

I'll implement a way to reconfigure the functionality through a panel this weekend.