From eea60b6ec5cc264453e265e81a1422913b38ba42 Mon Sep 17 00:00:00 2001 From: jamesdanielwhitford <70632508+jamesdanielwhitford@users.noreply.github.com> Date: Wed, 18 May 2022 11:15:46 +0200 Subject: [PATCH 1/3] Fix keyboard shortcuts Keyboard shortcuts that do and don't work are updated. And messages stating that Mac users make use of cmd and option key added to start. Users are also warned about accidentally accessing browser shortcuts. --- programming-ide/working-shortcuts.md | 49 ++++++++++------------------ 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/programming-ide/working-shortcuts.md b/programming-ide/working-shortcuts.md index dac85df5..2c5f2079 100644 --- a/programming-ide/working-shortcuts.md +++ b/programming-ide/working-shortcuts.md @@ -2,11 +2,17 @@ Be more productive with Replit by learning the code editor’s powerful shortcuts for editing, writing, and inspecting code. +This documentation demonstrates Windows shortcuts. So, if using a Mac, make use of the `cmd` key instead of the `crtl` key, and make use of the `option` key instead of the `alt` key. + +With any of these shortcuts, please ensure that your repl window has been clicked or these shortcuts may access the browser's shortcut keys instead. + ## Command Palette The command palette allows you to view all available commands based on your current context. -To access the command palette, press `F1` or `Ctrl+Shift+P` (`cmd+shift+P` on a Mac). **Note:** If you are using Firefox, `Ctrl+Shift+P` will open an incognito window, so use the `F1` option instead. +To access the command palette, press `F1` or `Ctrl+Shift+P`. + +**Note:** If you are using Firefox, `Ctrl+Shift+P` will open an incognito window, so use the `F1` option instead. ![command palette](/images/repls/editor/command_palette.gif) @@ -16,81 +22,64 @@ The following keyboard shortcuts can be used in a variety of ways. If you forget ### Moving the Current Line -On a Mac, press `option+up` or `option+down` to move the current line up or down. +Press `alt+up` or `alt+down` to move the current line up or down. -On other computers, press `alt+up` or `alt+down`. ![move line](/images/repls/editor/move_line.gif) ### Clone the Current Line -On a Mac, press `shift+option+up` or `shift+option+down` to clone the current line above or below. +Press `shift+alt+up` or `shift+alt+down` to clone the current line above or below. -On other computers, press `shift+alt+up` or `shift+alt+down`. ![clone line](/images/repls/editor/clone_line.gif) ### Selecting Lines -On a Mac, press `cmd+I` to select a line. +Press `ctrl+L` to select a line. -On other computers, press `ctrl+I`. ![select line](/images/repls/editor/select_line.gif) ### Deleting Lines -On a Mac, press `shift+cmd+K` to delete a line. +Press `ctrl+shift+K` to delete a line. -On other computers, press `ctrl+shift+K`. ![delete line](/images/repls/editor/delete_line.gif) ### Inserting Lines -On a Mac, press `shift+cmd+enter` to insert a line above. +Press `ctrl+shift+enter` to insert a line above. -On other computers, press `ctrl+shift+enter`. ![insert line](/images/repls/editor/insert_line.gif) ### Adding Cursors -On a Mac, press `cmd+option+up` or `cmd+option+down` to add cursors above or below your current line. +Press `ctrl+alt` or `ctrl+alt` and then click with the mouse to add more cursors. -On other computers, press `ctrl+alt+up` or `ctrl+alt+down`. ![adding cursors](/images/repls/editor/adding_cursors.gif) ### Find -On a Mac, press `cmd+F` to find. +Press `ctrl+F` to find. -On other computers, press `ctrl+F`. ![find](/images/repls/editor/find.gif) ### Replace -On a Mac, press `option+cmd+F` to replace. +Press `ctrl+H` to replace. -On other computers, press `ctrl+H`. ![replace](/images/repls/editor/replace.gif) -### Find Next/Previous - -On a Mac, press `cmd+G` to find next or `shift+cmd+G` to find previous. - -On other computers, press `F3` to find next or `shift+F3` to find previous. - -![find next](/images/repls/editor/find_next.gif) - ### Adding Selections to Next Find Match -On a Mac, press `cmd+D` to add a selection to the next find match. +Press `ctrl+D` to select and then `ctrl+F` to add a selection to the next find match. -On other computers, press `ctrl+D`. ![adding selections](/images/repls/editor/adding_selections.gif) @@ -100,17 +89,15 @@ Use the following shortcuts to navigate the editor. ### Open Files -On a Mac, press `cmd+P` to quickly open files. +Press `ctrl+P` to quickly open files. -On other computers, press `ctrl+P`. ![Open files](/images/repls/editor/open_files.gif) ### Go to Line -On a Mac, press `cmd+G` to go to a specified line. +Press `ctrl+G` to go to a specified line. -On other computers, press `ctrl+G`. ![go to line](/images/repls/editor/go_to_line.gif) From ec189fbcf7a896e06520ad872d28cc52133de21a Mon Sep 17 00:00:00 2001 From: worktheclock <85885287+worktheclock@users.noreply.github.com> Date: Mon, 23 May 2022 14:44:49 +0200 Subject: [PATCH 2/3] Working with shortcuts language edit --- programming-ide/working-shortcuts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programming-ide/working-shortcuts.md b/programming-ide/working-shortcuts.md index 2c5f2079..cbc1ffa5 100644 --- a/programming-ide/working-shortcuts.md +++ b/programming-ide/working-shortcuts.md @@ -2,9 +2,9 @@ Be more productive with Replit by learning the code editor’s powerful shortcuts for editing, writing, and inspecting code. -This documentation demonstrates Windows shortcuts. So, if using a Mac, make use of the `cmd` key instead of the `crtl` key, and make use of the `option` key instead of the `alt` key. +The shortcuts we'll show you here are for Windows. If you're using a Mac, use the `cmd` key instead of the `ctrl` key, and the `option` key instead of the `alt` key. -With any of these shortcuts, please ensure that your repl window has been clicked or these shortcuts may access the browser's shortcut keys instead. +When you use a shortcut, be sure that your repl window has been clicked, or these shortcuts may access the browser's keyboard shortcuts. ## Command Palette From 0cd6a6d91ae75732a503b6ef2f56c9cca70d0ad4 Mon Sep 17 00:00:00 2001 From: worktheclock <85885287+worktheclock@users.noreply.github.com> Date: Mon, 23 May 2022 15:03:59 +0200 Subject: [PATCH 3/3] Working with shortcuts capitalisation fix --- programming-ide/working-shortcuts.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/programming-ide/working-shortcuts.md b/programming-ide/working-shortcuts.md index cbc1ffa5..b03dc59a 100644 --- a/programming-ide/working-shortcuts.md +++ b/programming-ide/working-shortcuts.md @@ -6,7 +6,7 @@ The shortcuts we'll show you here are for Windows. If you're using a Mac, use th When you use a shortcut, be sure that your repl window has been clicked, or these shortcuts may access the browser's keyboard shortcuts. -## Command Palette +## Command palette The command palette allows you to view all available commands based on your current context. @@ -16,46 +16,46 @@ To access the command palette, press `F1` or `Ctrl+Shift+P`. ![command palette](/images/repls/editor/command_palette.gif) -## Frequently Used Keyboard Shortcuts +## Frequently used keyboard shortcuts The following keyboard shortcuts can be used in a variety of ways. If you forget a keyboard shortcut, check the command palette. -### Moving the Current Line +### Moving the current line Press `alt+up` or `alt+down` to move the current line up or down. ![move line](/images/repls/editor/move_line.gif) -### Clone the Current Line +### Clone the current line Press `shift+alt+up` or `shift+alt+down` to clone the current line above or below. ![clone line](/images/repls/editor/clone_line.gif) -### Selecting Lines +### Selecting lines Press `ctrl+L` to select a line. ![select line](/images/repls/editor/select_line.gif) -### Deleting Lines +### Deleting lines Press `ctrl+shift+K` to delete a line. ![delete line](/images/repls/editor/delete_line.gif) -### Inserting Lines +### Inserting lines Press `ctrl+shift+enter` to insert a line above. ![insert line](/images/repls/editor/insert_line.gif) -### Adding Cursors +### Adding cursors Press `ctrl+alt` or `ctrl+alt` and then click with the mouse to add more cursors. @@ -76,7 +76,7 @@ Press `ctrl+H` to replace. ![replace](/images/repls/editor/replace.gif) -### Adding Selections to Next Find Match +### Adding selections to next find match Press `ctrl+D` to select and then `ctrl+F` to add a selection to the next find match. @@ -87,14 +87,14 @@ Press `ctrl+D` to select and then `ctrl+F` to add a selection to the next find m Use the following shortcuts to navigate the editor. -### Open Files +### Open files Press `ctrl+P` to quickly open files. ![Open files](/images/repls/editor/open_files.gif) -### Go to Line +### Go to line Press `ctrl+G` to go to a specified line.