[ // XXX If needed for debug (cf.http://stackoverflow.com/a/29771703/5889533) // sublime.log_input(True); sublime.log_commands(True) // To switch between French and English dictionary // DONE finish and publish my plugin: https://github.com/Naereen/SublimeText3_SwitchDictionary/ // { "keys": ["ctrl+k", "ctrl+e"], "command": "run_macro_file", "args": // {"file": "res://Packages/User/english-spellcheck.sublime-macro"} // }, // { "keys": ["ctrl+k", "ctrl+f"], "command": "run_macro_file", "args": // {"file": "res://Packages/User/french-spellcheck.sublime-macro"} // }, { "keys": ["ctrl+k", "ctrl+n"], "command": "exec", "args": { "cmd": [ "/usr/bin/env", "/usr/bin/notify-send", "--icon", "/opt/sublime_text/Icon/256x256/sublime-text.png", // icon "Sublime Text 3", // title " Test notification from Sublime Text 3 \n (with the keyboard shortcut 'ctrl+k', 'ctrl+n') ", // body ], "quiet": true, } }, { "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} }, // To not quit the editor with ctrl+q { "keys": ["ctrl+q"], "command": "expand_selection", "args": {"to": "line"} }, { "keys": ["ctrl+k", "ctrl+a"], "command": "alignment" }, { "keys": ["ctrl+:"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+:"], "command": "toggle_comment", "args": { "block": true } }, // Cite BibTeX package // { "keys": ["f10"], "command": "cite_bibtex_show_reference_selector" }, { "keys": ["ctrl+f10"], "command": "cite_bibtex_show_reference_selector" }, // { "keys": ["f9"], "command": "cite_bibtex_show_citation_selector" }, { "keys": ["ctrl+f9"], "command": "cite_bibtex_show_citation_selector" }, // Bookmarks { "keys": ["f2"], "command": "next_bookmark" }, { "keys": ["ctrl+f2"], "command": "prev_bookmark" }, { "keys": ["shift+f2"], "command": "toggle_bookmark" }, { "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" }, { "keys": ["alt+f2"], "command": "select_all_bookmarks" }, // Move or select the current line { "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} }, { "keys": ["ctrl+shift+e"], "command": "move_to", "args": {"to": "bol", "extend": false} }, { "keys": ["ctrl+alt+e"], "command": "run_macro_file", "args": {"file": "res://Packages/User/copy-to-the-end-of-the-line.sublime-macro"} }, { "keys": ["ctrl+shift+alt+e"], "command": "run_macro_file", "args": {"file": "res://Packages/User/copy-to-the-beginning-of-the-line.sublime-macro"} }, // Inc-Dec-Value (reference: https://packagecontrol.io/packages/Inc-Dec-Value) { "keys": ["ctrl+up"], "command": "inc_dec_value", "args": { "action": "inc_min" } }, { "keys": ["ctrl+down"], "command": "inc_dec_value", "args": { "action": "dec_min" } }, { "keys": ["ctrl+insert"], "command": "inc_dec_value", "args": { "action": "ins_min" } }, // Anaconda (reference: http://damnwidget.github.io/anaconda/anaconda_settings) // Short shortcuts should be specific for Python (Python.sublime-settings) { "keys": ["alt+shift+g"], "command": "anaconda_goto", "args" : {} }, { "keys": ["ctrl+alt+shift+f"], "command": "anaconda_find_usages", "args" : {} }, { "keys": ["ctrl+i"], "command": "anaconda_doc", "args" : {} }, // { "keys": ["ctrl+alt+shift+i"], "command": "anaconda_doc", "args" : {} }, { "keys": ["ctrl+alt+shift+r"], "command": "anaconda_auto_format", "args" : {} }, // Sublime Calculate (https://packagecontrol.io/packages/Calculate) { "keys": ["ctrl+shift+="], "command": "calculate", "args": {"replace": false} }, { "keys": ["ctrl+shift+c"], "command": "calculate", "args": {"replace": true} }, { "keys": ["ctrl+shift+alt+1"], "command": "calculate_count" }, // SublimeGit (reference: https://docs.sublimegit.net/customizations.html#keyboard-shortcuts) { "keys": ["alt+shift+s"], "command": "git_status", "args": {} }, { "keys": ["alt+shift+a"], "command": "git_add_current_file", "args": {} }, { "keys": ["alt+shift+d"], "command": "git_diff", "args": {} }, { "keys": ["alt+shift+f"], "command": "git_diff_current_file", "args": {} }, { "keys": ["alt+shift+l"], "command": "git_log", "args": {} }, { "keys": ["alt+shift+c"], "command": "git_commit", "args": {} }, { "keys": ["alt+shift+p"], "command": "git_push", "args": {} }, // { "keys": ["f8"], "command": "show_side_bar" }, // { "keys": ["f9"], "command": "sort_lines", "args": {"case_sensitive": false} }, // { "keys": ["ctrl+f9"], "command": "sort_lines", "args": {"case_sensitive": true} }, // View > Layout { "keys": ["alt+shift+&"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1]] } }, { "keys": ["alt+shift+é"], "command": "set_layout", "args": { "cols": [0.0, 0.5, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, { "keys": ["alt+shift+3"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 0.5, 1.0], "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] } }, { "keys": ["alt+shift+4"], "command": "set_layout", "args": { "cols": [0.0, 0.25, 0.5, 0.75, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]] } }, { "keys": ["alt+shift+\""], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 0.5, 1.0], "cells": [[0, 0, 1, 1], [0, 1, 1, 2]] } }, { "keys": ["alt+shift+9"], "command": "set_layout", "args": { "cols": [0.0, 1.0], "rows": [0.0, 0.33, 0.66, 1.0], "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]] } }, { "keys": ["alt+shift+5"], "command": "set_layout", "args": { "cols": [0.0, 0.5, 1.0], "rows": [0.0, 0.5, 1.0], "cells": [ [0, 0, 1, 1], [1, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2] ] } }, ]