1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 325 forks source link

[Feature request] Add blacklisted domains to normal configuration #37

Closed soli closed 10 years ago

soli commented 10 years ago

Basically I'd like to be able to sync them the same way I sync the rest of my config.

Thanks.

wooger commented 10 years ago

This makes sense, no reason to separate some config in a different file.

1995eaton commented 10 years ago

The main problem with this is that a separate textbox for the blacklists makes it a lot easier for the cVim popup to dynamically add/remove blacklists. If I were to combine these textboxes, it would most likely require a considerable amount of extra code.

soli commented 10 years ago

But would you consider a pull request for the merge? [I'm all optimistic right now, with a week-end ahead, but actually I have many other things to do, so no guarantee :P]

1995eaton commented 10 years ago

I'd definitely consider a pull request if you can get it working! The relevant files you'd have to look into would be background_scripts/popup.js, content_scripts/command.js (lines 621-643), and pages/options.js

soli commented 10 years ago

I have a question (not directly related, but…): checkBlackList from command.js now uses matchLocation but getBlacklisted and toggleBlacklisted from popup.js don't

Since I was playing around with that code, I'd like to know what to do…

Should I just leave all this as is, and just care about the main objective of moving the blacklists into normal settings or should we solve both altogether? [I'd say, use matchLocation everywhere, even if enabling a single site of a glob pattern would enable the whole pattern…]