search settings in store

This commit is contained in:
Shin'ya Ueoka 2017-10-01 15:04:23 +09:00
parent 7a85b203ac
commit 27aa739caf
7 changed files with 47 additions and 61 deletions

View file

@ -36,6 +36,17 @@ export default {
"]]": { "type": "navigate.link.next" },
"gu": { "type": "navigate.parent" },
"gU": { "type": "navigate.root" }
},
"search": {
"default": "google",
"engines": {
"google": "https://google.com/search?q={}",
"yahoo": "https://search.yahoo.com/search?p={}",
"bing": "https://www.bing.com/search?q={}",
"duckduckgo": "https://duckduckgo.com/?q={}",
"twitter": "https://twitter.com/search?q={}",
"wikipedia": "https://en.wikipedia.org/w/index.php?search={}"
}
}
}`
};

View file

@ -1,6 +1,6 @@
import operations from '../../operations';
const VALID_TOP_KEYS = ['keymaps'];
const VALID_TOP_KEYS = ['keymaps', 'search'];
const VALID_OPERATION_VALUES = Object.keys(operations).map((key) => {
return operations[key];
});