In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py)
Save and open the script in your editor of choice.
| import React from 'react'; | |
| import { Editor, KeyBindingUtil, getDefaultKeyBinding } from 'draft-js'; | |
| import keycode from 'keycode'; | |
| import insertCheckbox from 'modifiers/insertCheckbox'; | |
| const { hasCommandModifier } = KeyBindingUtil; | |
| function customKeyBindingFn(e) { | |
| if (hasCommandModifier(e) && e.shiftKey && keycode(e) === 'c') { | |
| return 'insert-checkbox'; |