Difference between revisions of "Manual:Editor"

From Mudlet
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
The following shortcuts are available in the Lua code editor:
 
The following shortcuts are available in the Lua code editor:
  
{| style="width: 500px; border-bottom:solid 5px #882222;"  
+
{| class="alternating-table" style="width: 500px; border-bottom:solid 5px #882222;"  
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Navigation shortcuts
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Navigation shortcuts
 
|-  
 
|-  
Line 23: Line 23:
 
|-  
 
|-  
 
| style="font-family: monospace, monospace;" | Ctrl+1
 
| style="font-family: monospace, monospace;" | Ctrl+1
| Show trigger editor
+
| Show [[Manual:Technical_Manual#Trigger_Engine|trigger]] editor
 
|- style="background-color:#ffefef;"
 
|- style="background-color:#ffefef;"
 
| style="font-family: monospace, monospace;" | Ctrl+2
 
| style="font-family: monospace, monospace;" | Ctrl+2
| Show aliases editor
+
| Show [[Manual:Technical_Manual#React_on_input_-_Mudlets_Alias_Engine|aliases]] editor
 
|-  
 
|-  
 
| style="font-family: monospace, monospace;" | Ctrl+3
 
| style="font-family: monospace, monospace;" | Ctrl+3
Line 32: Line 32:
 
|- style="background-color:#ffefef;"
 
|- style="background-color:#ffefef;"
 
| style="font-family: monospace, monospace;" | Ctrl+4
 
| style="font-family: monospace, monospace;" | Ctrl+4
| Show timers editor
+
| Show [[Manual:Technical_Manual#Timer_Engine|timers]] editor
 
|-  
 
|-  
 
| style="font-family: monospace, monospace;" | Ctrl+5
 
| style="font-family: monospace, monospace;" | Ctrl+5
| Show keys editor
+
| Show [[Manual:Introduction#Keybindings|keys]] editor
 
|- style="background-color:#ffefef;"
 
|- style="background-color:#ffefef;"
 
| style="font-family: monospace, monospace;" | Ctrl+6
 
| style="font-family: monospace, monospace;" | Ctrl+6
| Show variables editor
+
| Show [[Manual:Technical_Manual#Using_Variables_in_Mudlet|variables]] editor
 
|-  
 
|-  
 
| style="font-family: monospace, monospace;" | Ctrl+7
 
| style="font-family: monospace, monospace;" | Ctrl+7
| Show buttons editor
+
| Show [[Manual:Introduction#Buttons|buttons]] editor
 
|- style="background-color:#ffefef;"
 
|- style="background-color:#ffefef;"
 
| style="font-family: monospace, monospace;" | Ctrl+8
 
| style="font-family: monospace, monospace;" | Ctrl+8
| Show error log console
+
| Show [[Manual:Introduction#Seeing_errors_in_your_code|error]] log console
 
|-  
 
|-  
 
| style="font-family: monospace, monospace;" | Ctrl+9
 
| style="font-family: monospace, monospace;" | Ctrl+9
Line 54: Line 54:
  
  
{| style="width: 500px; border-bottom:solid 5px #882222;"  
+
{| class="alternating-table" style="width: 500px; border-bottom:solid 5px #882222;"  
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Selection shortcuts
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Selection shortcuts
 
|-
 
|-
Line 92: Line 92:
  
  
{| style="width: 500px; border-bottom:solid 5px #882222;"  
+
{| class="alternating-table" style="width: 500px; border-bottom:solid 5px #882222;"  
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Editing shortcuts
 
! colspan="2" style="color:white; background-color:#882222; text-align:left;" | Editing shortcuts
 
|-
 
|-
Line 124: Line 124:
 
| style="font-family: monospace, monospace;" | Shift+Delete
 
| style="font-family: monospace, monospace;" | Shift+Delete
 
|  
 
|  
 +
|-
 +
| style="font-family: monospace, monospace;" | Ctrl+R
 +
| Toggle read-only
 
|}
 
|}

Latest revision as of 14:37, 12 January 2024

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
Ctrl+S Save current item (trigger, alias, etc.)
Ctrl+Shift+S Save complete profile
Ctrl+1 Show trigger editor
Ctrl+2 Show aliases editor
Ctrl+3 Show scripts editor
Ctrl+4 Show timers editor
Ctrl+5 Show keys editor
Ctrl+6 Show variables editor
Ctrl+7 Show buttons editor
Ctrl+8 Show error log console
Ctrl+9 Display statistics in main window
Ctrl+0 Open central debug console window


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
Ctrl+F Opens the script editor's FIND dialog.
F3 Moves to the next FIND result.
Shift+F3 Moves to the previous FIND result.


Editing shortcuts
Ctrl+] Indent right
Ctrl+[ Indent left
Ctrl+Shift+D Duplicate
Ctrl+/ Toggle selection comment
Alt+Backspace Delete rest of the word left
Ctrl+Backspace
Shift+Backspace
Alt+Delete Delete rest of the word right
Ctrl+Delete
Shift+Delete
Ctrl+R Toggle read-only