wiki:CommandKeyHelp

Mouse behavior

Selecting in the Lively editor is similar to most other systems, except for double-clicking...

  • Double-clicking is independent of timing. You just click twice in the same spot.
  • Double-clicking inside a word will select a word
    • add detail here about which characters are included and how
    • could do better with period
  • Double-clicking next to a bracket character will select up to the matching bracket
    • this includes [..], {..}, (..), <..>, and even /*..*/
  • Double clicking at the beginning or the end of the text selects the entire text
  • Double clicking at the beginning or the end of a line selects the entire line

Text editing

The editing commands all use a command-key modifier such as the Apple key or the alt key. The key combinations below are for text editing

  • a -- select All. First use selects what you may have just typed. Second use selects entire text.
  • x -- Cut. Cut the selected text and copy it to the clipboard.
  • c -- Copy. Copy the selected text to the clipboard
  • v -- Paste. Paste the clipboard contents to the current selection
  • m -- More. Repeat the last replacement. In other words search forward for the next possible similar replacement and perform it. This is a great time-saver because you don't have to plan ahead for multiple replacements.
  • e -- Exchange. Exchange the current selection with the previous selection. Another great time-saver, especially in conjunction with double-click selection.
  • f -- Find. Prompts for some text and then searches for the first occurrence in the text following the current selection.
  • g -- aGain. Search forward for the next occurrence of the previous search string
  • w -- Where. When source code is online, this will search the entire code base for strings matching the current selection, and open a changeList browser on all patches containing that string.
  • d -- Do it. Evaluate the current selection as JavaScript.
  • p -- Print it. Evaluate the current selection as JavaScript and print the result following the selection.
  • s -- Save. Save the contents of this text pane. This may mean different things in different places.
    • the default behavior is to evaluate the entire text as JavaScript
    • when the world has the Keyboard Focus, it saves the World!

Style related

  • alt + c -- Copy style
  • alt + v -- Paste style

command-key + shift +

  • P -- Evaluate selection or line and show the protocol of the resulting object

These emphasis commands turn their attribute on or off depending on the first character of the selection (does not work on all Browsers)

  • b -- Bold. Make the entire selection bold or not bold
  • i -- Italic. Make the entire selection italic or not italic

The font size commands are relative to the fontSize set for the textMorph as a whole.

  • + increase font size
  • - decreases font size

Text alignment commands

  • l -- Left flush
  • r -- Right flush
  • j -- Justify, ie, align flush with left and right margins
  • h -- Halfway, ie, center this text

Other commands. CMD +

  • u -- URL. Associate a link with this text (and color it blue)
  • o -- Give the selection some local color
  • z -- Undo the previous change to the best of our ability
  • shift + z -- Redo the previous change to the best of our ability

ALT +

  • click on a link -- Open that link in a new tab/browser window

CTRL +

  • click on a link -- edit that link

Note that the Style Panel can be used to control global settings of, eg, text font, size, color and background.

Shortcuts outside of texts

Open tools, command key and...

  • b -- System code browser
  • l -- Local code browser
  • k -- Workspace
  • F -- Search for strings in parsed source code

Style related

  • alt + c -- Copy style of morph
  • alt + v -- Paste style into morph(s)

Saving

  • s -- save world