Created
November 8, 2012 10:26
-
-
Save ashtuchkin/4037991 to your computer and use it in GitHub Desktop.
My ubuntu shortcuts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ubuntu keyboard shortcuts | |
| ## Global | |
| Alt+F1 : Keyboard focus on launchbar | |
| Alt+F2 : Launch program | |
| Ctrl+Alt+T : Terminal | |
| Win : Search Unity | |
| Alt : Enter Command for current apps & top bar | |
| Ctrl+Alt+Del : Log out | |
| Ctrl+Alt+L : Lock computer | |
| ## Global Window management | |
| Alt+Space : Window menu | |
| Ctrl+Super+Up/Down : Maximize/restore window. | |
| Alt(+Shift)+Tab : Switch windows | |
| Alt(+Shift)+Esc : Switch windows directly | |
| Ctrl+Super+D : Show desktop/back | |
| Ctrl+Alt+(LRUD) : Move to other desktop | |
| Shift+Ctrl+Alt+(LRUD) : Move window to other desktop | |
| Ctrl+Win+Up/Down : Maximize/unmaximize current window. | |
| ## Terminal | |
| Ctrl+Shift+C/V : Copy/Paste | |
| Ctrl+Shift+T/N : New tab/window | |
| Ctrl+Shift+W/Q : Close tab/window | |
| Shift+PgUp/PgDn : Scroll by pages | |
| Ctrl+Shift+Up/Dn : Scroll by lines | |
| Alt+1..9.0 : Switch to tab. | |
| Ctrl+(+Shift)+PgUp/PgDn : Next/Prev Tab or Move to next/prev tab | |
| F11 : Full screen | |
| echo -en "\ec" : (ESC c) clear screen | |
| ## Bash | |
| Ctrl+Z / bg / fg / disown -h / byobu : manage background task | |
| !.. :p : view command and store it as last. | |
| !^, !$, !* : First, last, all arguments of last command | |
| ^from^to : replace from to to | |
| PgUp/PgDn : search history after http://habrahabr.ru/post/39077/#comment_932535 | |
| Ctrl+Left/Right : Left/Right word after copy from /etc/inputrc | |
| Ctrl+R : Incremental search history (Ctrl+G - abort) | |
| Ctrl+U : Clear (cut) current line (Maybe after Ctrl+X or Ctrl+E), Paste: Ctrl+Y | |
| Ctrl+K : Clear from cursor to the end of the line | |
| Ctrl+L : Clear screen leaving current line at top | |
| Ctrl+_ : Undo editing command | |
| Ctrl+W : Delete last word | |
| Alt+<num> : Argument to next command ("readline arguments") | |
| Commands: | |
| <any char>: Repeat the char. | |
| Alt+. : Last argument of last command (can be multiple) | |
| Alt+0 Alt+. : First word of last, prev commands | |
| Alt+3 Alt+. : 3-rd arg of last command | |
| Alt+'-1' Alt+. : Next-to-last args of commands | |
| ## SSH (Multiplexed connections & PermitLocalCommand) | |
| Escape is '~' immediately after newline. Commands: | |
| ~? : help | |
| ~C : command line | |
| help : list help | |
| !<cmd> : execute local command | |
| -D/-L/-F : add port forwarding | |
| ~. : terminate connection | |
| ~^Z : background ssh | |
| ## Sublime Text 2 | |
| ### File operations | |
| Ctrl+N: New empty file | |
| Ctrl+O: Open file through dialog | |
| Ctrl+(Shift+)+S: Save or Save as. | |
| Ctrl+W: Close file | |
| Ctrl+T: New file relative to current file (asks for a name) | |
| Ctrl+Shift+T: Reopen closed file | |
| ### Goto anywhere | |
| Ctrl+P: Goto anywhere. | |
| Default: open files in current project | |
| @: current file: symbols (headers/blocks/functions) (Ctrl+R) | |
| #: current file: words (also Ctrl+;) | |
| ':': current file: line num (also Ctrl+G) | |
| Ctrl+Alt+P: Choose project | |
| Ctrl+Shift+P: Command palette | |
| ### Navigation between tabs and open files | |
| Ctrl+K+B: Toggle side bar | |
| F11/Shift+F11: Fullscreen/Zen mode | |
| Ctrl+`: Show console | |
| Ctrl+0: Focus side bar (right side) | |
| Ctrl+1: Focus files (left side) | |
| Alt+<num>: Focus open files, according to tab number | |
| Ctrl+PgUp/PgDn: Next/prev file | |
| Ctrl+Tab/Ctrl+Shift+Tab: Next/prev file according to recency | |
| Ctrl+Shift+PgUp/PgDn: Move current open file in the open files list. | |
| ### Navigation inside file | |
| Usual up/down/pgup/pgdown. | |
| Ctrl+Up/Down: Move one line up/down | |
| Ctrl+M: Move to brackets. | |
| ### Selection | |
| Ctrl+C/X: Copy/Cut current line if nothing selected. | |
| Ctrl+L: Select line (and next lines) | |
| Ctrl+D: Select word (and next occurences of the same word) | |
| Ctrl+Shift+J: Select indentation block (then parent block, etc) | |
| Ctrl+Shift+M: Select brackets | |
| Ctrl+Shift+L: Split selection by lines, make multiple selections. | |
| Ctrl+LeftClick: Make one more cursor under mouse cursor | |
| ### Find | |
| Ctrl+F/Ctrl+H: Find/Replace | |
| F3/Ctrl+F3: Next/prev find | |
| Ctrl+Shift+H: Replace next | |
| Ctrl+F3/Ctrl+D: Quick find next/add next to selection | |
| Alt+F3: Quick find all | |
| Ctrl+E/Ctrl+Shift+E: Use current selection to find/replace without dialog | |
| Ctrl+Shift+F: Search in files. F4/Shift+F4: Next/prev result. | |
| ### Text editing | |
| Ctrl+Return/Ctrl+Shift+Return: Insert line after/before current. | |
| Ctrl+Shift+K: Delete current line. | |
| Ctrl+Shift+D: Duplicate current line/selection. | |
| Ctrl+[/Ctrl+]: Indent/unindent line. | |
| Ctrl+J: Join current line and the next one. | |
| Ctrl+Shift+Up/Down: Move current selected lines up/down. | |
| Ctrl+Del/Backspace: Delete word forward/backward | |
| Ctrl+Shift+Del/Backspace: Delete to line end/beginning | |
| Ctrl+/: Comment-out/uncomment selection. | |
| ### Replaceable | |
| F2 - Bookmarks/Rename file (side_bar_rename command) | |
| F4 - Prev/next in find in files | |
| F5 - My RUN | |
| F6 - My Show | |
| F7 - Build | |
| F8 - - | |
| F9 - Sort selection | |
| F12 - Open this file in browser | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment