Table of contents
See the following examples:
~/.config/krabby/config.js
const { extensions, modes } = krabby
const { modal } = modes
// Your awesome extension
extensions.your_awesome_extension = {}
extensions.your_awesome_extension.port = chrome.runtime.connect(your_awesome_extension_id)
extensions.your_awesome_extension.send = (command, ...arguments) => {
extensions.your_awesome_extension.port.postMessage({ command, arguments })
}
// Mappings
modal.map('Command', ['F2'], () => extensions.your_awesome_extension.send('something'), 'Call something from your awesome extension', 'Your awesome extension')
See Cross-extension messaging for a complete reference.
See the following examples:
Search the following topics #krabby #plugin
for other plugins.