Difference between revisions of "Manual:Script Editor"

From Mudlet
Jump to navigation Jump to search
(→‎Editor: Remove placeholder text, theme customisation didn't actually work out)
(Replace image with text for a11y & also include keyboard navigation from PR #2979)
Line 5: Line 5:
 
The following shortcuts are available in the Lua code editor:
 
The following shortcuts are available in the Lua code editor:
  
[[File:Mudlet-editor-shortcuts.png|1000px]]
+
{| style="width: 500px; border-bottom:solid 5px #882222;"
 +
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Navigation shortcuts
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Tab
 +
| Focus next section
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Shift+Tab
 +
| Focus previous section
 +
|}
 +
 
 +
 
 +
{| style="width: 500px; border-bottom:solid 5px #882222;"
 +
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Selection shortcuts
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+A
 +
| Select all text
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Left click
 +
| Add cursors
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Alt+Up
 +
| Extend custors up
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Alt+Down
 +
| Extend custors down
 +
|-
 +
| style="font-family: monospace, monospace;" | Esc
 +
| Switch to one cursor
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+D
 +
| Select words at the cursor
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+L
 +
| Select next lines
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Shift+L
 +
| Select previous lines
 +
|}
 +
 
 +
 
 +
{| style="width: 500px; border-bottom:solid 5px #882222;"
 +
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Editing shortcuts
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+]
 +
| Indent right
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+[
 +
| Indent left
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Shift+D
 +
| Duplicate
 +
|-
 +
| style="font-family: monospace, monospace;" | Alt+Backspace
 +
| Delete rest of the word left
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Backspace
 +
|
 +
|-
 +
| style="font-family: monospace, monospace;" | Shift+Backspace
 +
|
 +
|-
 +
| style="font-family: monospace, monospace;" | Alt+Delete
 +
| Delete rest of the word right
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+Delete
 +
|
 +
|-
 +
| style="font-family: monospace, monospace;" | Shift+Delete
 +
|
 +
|}

Revision as of 12:26, 30 August 2019

Editor

Editor shortcuts

The following shortcuts are available in the Lua code editor:

Navigation shortcuts
Ctrl+Tab Focus next section
Ctrl+Shift+Tab Focus previous section


Selection shortcuts
Ctrl+A Select all text
Ctrl+Left click Add cursors
Ctrl+Alt+Up Extend custors up
Ctrl+Alt+Down Extend custors down
Esc Switch to one cursor
Ctrl+D Select words at the cursor
Ctrl+L Select next lines
Ctrl+Shift+L Select previous lines


Editing shortcuts
Ctrl+] Indent right
Ctrl+[ Indent left
Ctrl+Shift+D Duplicate
Alt+Backspace Delete rest of the word left
Ctrl+Backspace
Shift+Backspace
Alt+Delete Delete rest of the word right
Ctrl+Delete
Shift+Delete