def init(manager): manager.add_shortcut('python-goto-definition', 'F3', 'Python', 'Navigates to python definition', goto_definition) manager.add_shortcut('python-outline', '<ctrl>o', 'Python', 'Opens outline dialog', open_outline) manager.add_shortcut('python-calltip', '<ctrl>Return', 'Python', 'Shows calltips', show_calltips) manager.add_shortcut('run-test', '<ctrl>F10', 'Tests', 'Run test in cursor scope', run_test) manager.add_shortcut('run-all-tests', '<ctrl><shift>F10', 'Tests', 'Run all project tests', run_all_tests) manager.add_shortcut('rerun-test', '<shift><alt>X', 'Tests', 'Rerun last test suite', rerun_test) manager.add_shortcut('toggle-test-panel', '<alt>1', 'Window', 'Toggle test panel', toggle_test_panel) manager.add_global_option('PYTHON_EXECUTABLE', None, 'Path to python executable') manager.add_global_option('PYTHON_SPYPKG_HANDLER_MAX_CHARS', 25, 'Maximum allowed python package title length') manager.add_title_handler('pypkg', pypkg_handler) manager.add_title_handler('spypkg', spypkg_handler) from snaked.core.prefs import register_dialog register_dialog('Rope hints', edit_rope_hints, 'rope', 'hints') register_dialog('Rope config', edit_rope_config, 'rope', 'config')
def init(manager): manager.add_shortcut('python-goto-definition', 'F3', 'Python', 'Navigates to python definition', goto_definition) manager.add_shortcut('python-outline', '<ctrl>o', 'Python', 'Opens outline dialog', open_outline) manager.add_shortcut('python-calltip', '<ctrl>Return', 'Python', 'Shows calltips', show_calltips) manager.add_shortcut('run-test', '<ctrl>F10', 'Tests', 'Run test in cursor scope', run_test) manager.add_shortcut('run-all-tests', '<ctrl><shift>F10', 'Tests', 'Run all project tests', run_all_tests) manager.add_shortcut('rerun-test', '<shift><alt>X', 'Tests', 'Rerun last test suite', rerun_test) manager.add_shortcut('toggle-test-panel', '<alt>1', 'Window', 'Toggle test panel', toggle_test_panel) manager.add_title_handler('pypkg', pypkg_handler) from snaked.core.prefs import register_dialog register_dialog('Rope hints', edit_rope_hints, 'rope', 'hints') register_dialog('Rope config', edit_rope_config, 'rope', 'config')
def init(manager): from snaked.core.prefs import register_dialog register_dialog('Snippets', show_snippet_preferences, 'snippet')
def init(manager): manager.add_shortcut('external-tools', '<alt>x', 'Tools', 'Run tool', run_tool) register_dialog('External tools', edit_external_tools, 'run', 'external', 'tool', 'command')