{"id":1318,"date":"2015-05-03T15:12:59","date_gmt":"2015-05-03T13:12:59","guid":{"rendered":"http:\/\/vady.kiev.ua\/tweets\/?p=1318"},"modified":"2015-05-03T15:12:59","modified_gmt":"2015-05-03T13:12:59","slug":"windows-10-gets-a-fresh-command-prompt-and-lots-of-hotkeys","status":"publish","type":"post","link":"https:\/\/vady.kiev.ua\/tweets\/1318","title":{"rendered":"Windows 10 gets a fresh command prompt and lots of hotkeys"},"content":{"rendered":"<p>Well, from what I can tell looking at the Preview, there&#8217;s a LOT of cool Console goodness coming in Windows 10.<\/p>\n<p>Here&#8217;s a list of hotkeys in the Windows 10 Technical Preview console. This is just hotkeys! Be sure to explore the Properties dialog as well, resize, word wrapping, and more.<!--more--><\/p>\n<h3>TEXT SELECTION KEYS<\/h3>\n<p>These combinations interoperate with the mouse so you can start selecting with the mouse and continue with one of these commands, or vice versa.<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><b>Selection Key Combination<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>SHIFT + LEFT ARROW<\/td>\n<td>Moves the cursor to the left one character, extending the selection.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + RIGHT ARROW<\/td>\n<td>Moves the cursor to the right one character, extending the selection.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + UP ARROW<\/td>\n<td>Selects text up line by line starting from the location of the insertion point.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + DOWN ARROW<\/td>\n<td>Extends text selection down one line, starting at the location of the insertion point.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + END<\/td>\n<td>If cursor is in current line being edited* First time extends selection to the last character in the input line.<\/p>\n<p>* Second consecutive press extends selection to the right margin.<\/p>\n<p>Else<\/p>\n<p>Selects text from the insertion point to the right margin.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + HOME<\/td>\n<td>If cursor is in current line being edited* First time extends selection to the character immediately after the command prompt.<\/p>\n<p>* Second consecutive press extends selection to the left margin.<\/p>\n<p>Else<\/p>\n<p>Extends selection to the left margin.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + PAGE DOWN<\/td>\n<td>Extends selection down one screen.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + PAGE UP<\/td>\n<td>Extends selection up one screen.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + SHIFT + RIGHT ARROW<\/td>\n<td>Extends the selection one word to the right.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + SHIFT + LEFT ARROW<\/td>\n<td>Extends the selection one word to the left.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + SHIFT + HOME<\/td>\n<td>Extend selection to the beginning of the screen buffer.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + SHIFT + END<\/td>\n<td>Extend selection to the end of the screen buffer.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + A<\/td>\n<td>If cursor is in current line being edited (from first typed char to last type char) <b><i>and<\/i><\/b> line is not empty <b><i>and<\/i><\/b>any selection cursor is also within the line being editedSelects all text after the prompt.\u00a0 (phase 1)<\/p>\n<p>Else<\/p>\n<p>Selects the entire buffer.\u00a0 (phase 2)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>EXTRA FUN WITH CTRL + A<\/h3>\n<p>CTRL + A behavior is interesting. Regardless of the state of mark mode and quick edit mode, one of two things should happen. Either the entire buffer is selected, or (only in a single case) &#8216;2-Phase select&#8217; starts.\u00a0 2-Phase select is the process where the first CTRL-A selects the characters to the right of the edit line prompt, and the <em>second<\/em> press selects the entire buffer.<\/p>\n<h3>EDITING KEYS<\/h3>\n<p>As I mentioned above you can copy and paste text with the keyboard. When copying text, you might worry that CTRL + C has always been the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/windows\/desktop\/ms682541(v=vs.85).aspx\">BREAK<\/a> command. This is a nice touch, it will still send the break signal to the running application when no text is selected. The first CTRL-C copies the text and clears the selection, and the second one signals the break. Nice attention to detail, IMHO.<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><b>Editing Key Combination<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>CTRL + V<\/td>\n<td>Paste text into the command line.<\/td>\n<\/tr>\n<tr>\n<td>SHIFT + INS<\/td>\n<td>Paste text into the command line.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + C<\/td>\n<td>Copy selected text to the clipboard.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + INS<\/td>\n<td>Copy selected text to the clipboard.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>MARK MODE KEYS<\/h3>\n<p>These keys function in mark mode. You can enter this mode by right-clicking anywhere in the console title bar and choosing Edit-&gt;Mark from the context menu as before, or via the new shortcut combination, CTRL-M. In the original console, mark mode resulted in block mode text selection. While in mark mode, you can hold down the ALT key at the start of a text selection command to use block mode in the new console. The selection key combinations above are all available in mark mode. CTRL + SHIFT + ARROW operations select by character and not by word while in mark mode.<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><b>Mark Mode Key Combination<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>CTRL + M<\/td>\n<td>Enter &#8220;Mark Mode&#8221; to move cursor within window.<\/td>\n<\/tr>\n<tr>\n<td>ALT<\/td>\n<td>In conjunction with one of the selection key combinations, begins selection in block mode.<\/td>\n<\/tr>\n<tr>\n<td>ARROW KEYS<\/td>\n<td>Move cursor in the direction specified.<\/td>\n<\/tr>\n<tr>\n<td>PAGE KEYS<\/td>\n<td>Move cursor by one page in the direction specified.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + HOME<\/td>\n<td>Move cursor to beginning of buffer.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + END<\/td>\n<td>Move cursor to end of buffer.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>HISTORY NAVIGATION KEYS<\/h3>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><b>Navigation\u00a0 Key Combination<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>CTRL + UP ARROW<\/td>\n<td>Moves up one line in the output history.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + DOWN ARROW<\/td>\n<td>Moves down one line in the output history.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + PAGE UP<\/td>\n<td>Moves up one page in the output history.<\/td>\n<\/tr>\n<tr>\n<td>CTRL + PAGE DOWN<\/td>\n<td>Moves down one page in the output history.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>OTHER KEYS<\/h3>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><b>Other Key Combination<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>CTRL + F<\/td>\n<td>Opens &#8220;Find&#8221; in console dialog.<\/td>\n<\/tr>\n<tr>\n<td>ALT + F4<\/td>\n<td>\n<p data-select-like-a-boss=\"1\">Close the console window, of course!<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a92015 <a href=\"http:\/\/www.hanselman.com\/blog\/Windows10GetsAFreshCommandPromptAndLotsOfHotkeys.aspx\" target=\"_blank\">Scott Hanselman<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, from what I can tell looking at the Preview, there&#8217;s a LOT of cool Console goodness coming in Windows 10. Here&#8217;s a list of hotkeys in the Windows 10 Technical Preview console. This is just hotkeys! Be sure to explore the Properties dialog as well, resize, word wrapping, and more.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,1],"tags":[308,375,383,55],"class_list":["post-1318","post","type-post","status-publish","format-standard","hentry","category-talks","category-misc","tag-cmd","tag-command-line","tag-keys","tag-windows"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7bIIX-lg","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/comments?post=1318"}],"version-history":[{"count":3,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1318\/revisions"}],"predecessor-version":[{"id":1321,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/posts\/1318\/revisions\/1321"}],"wp:attachment":[{"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/media?parent=1318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/categories?post=1318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vady.kiev.ua\/tweets\/wp-json\/wp\/v2\/tags?post=1318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}