Difference between revisions of "Calico: Getting Started"

From IPRE Wiki
Jump to: navigation, search
(Keyboard Commands)
(Keyboard Commands)
Line 48: Line 48:
 
These work for Editor and Shell.
 
These work for Editor and Shell.
  
Editing shortcuts:
+
Visual shortcuts:
  
* Indent block: select and press Tab
 
* Dedent block: select and press Shift+Tab
 
 
* Zoom in: Control + mouse wheel forwards
 
* Zoom in: Control + mouse wheel forwards
 
* Zoom out: Control + mouse wheel backwards
 
* Zoom out: Control + mouse wheel backwards
 +
 +
Editing shortcuts:
 +
 +
* Indent block: select and press Tab
 +
* Unindent block: select and press Shift+Tab
 
* Undo: Control + Z
 
* Undo: Control + Z
 
* Redo: Control + Shift + Z
 
* Redo: Control + Shift + Z
Line 60: Line 63:
 
* Paste: Control + V
 
* Paste: Control + V
 
* Move block: Control + left mouse drag
 
* Move block: Control + left mouse drag
 +
* Auto indent: will automatically indent to the level of the previous line
 +
* Unindent a line: shift + Tab
 +
* Indent a line: go to begging of line, press Tab key
  
 
Selection shortcuts:
 
Selection shortcuts:
Line 86: Line 92:
 
* Previous command: Up arrow
 
* Previous command: Up arrow
 
* Next command: Down key
 
* Next command: Down key
 +
 +
== Editor ==
 +
 +
Visual queues:
 +
 +
* Yellow in margin: line has been edited
 +
* Green in margin: line has been edited and saved
 +
* Current line has grey background

Revision as of 14:14, 25 January 2011

Pyjama: Getting Started

You can start Pyjama up by running the ./pyjama (Linux and Mac OSX) and pyjama.bat (Windows).

You can pass a number of "flags" to Pyjama. Here we pass the --help flag to see what all of the options are:

C:\Users\dblank\Pyjama>pyjama.bat --help
Loading Pyjama...

Pyjama Project, Version 0.2.4, on Microsoft Windows NT 6.1.7600.0
----------------------------------------------------------------------------
Start pyjama with the following options:
  pyjama                            Defaults to shell
  pyjama FILENAMES                  Edits FILENAMES
  pyjama --shell                    Brings up shell
  pyjama --editor                   Brings up editor
  pyjama --exec FILENAMES           Runs FILENAMES standalone, with graphics
  pyjama --exec --nogui FILENAMES   Runs FILENAMES standalone, no graphics
  pyjama --version                  Displays the version number (0.2.4)
  pyjama --help                     Displays this message

Examples

To edit a program:

pyjama myprog.rb

To edit a bunch of programs:

pyjama *.py

To run a program:

pyjama --exec myprog.rb

To run a program that takes care of its own graphics:

pyjama --exec --nogui myprog.rb

To open up the editor and shell:

pyjama --editor --shell

Keyboard Commands

These work for Editor and Shell.

Visual shortcuts:

  • Zoom in: Control + mouse wheel forwards
  • Zoom out: Control + mouse wheel backwards

Editing shortcuts:

  • Indent block: select and press Tab
  • Unindent block: select and press Shift+Tab
  • Undo: Control + Z
  • Redo: Control + Shift + Z
  • Cut: Control + X
  • Copy: Control + C
  • Paste: Control + V
  • Move block: Control + left mouse drag
  • Auto indent: will automatically indent to the level of the previous line
  • Unindent a line: shift + Tab
  • Indent a line: go to begging of line, press Tab key

Selection shortcuts:

  • Select: Shift + arrow keys; Shift + Control + arrow keys; left-click and mouse drag; double-, triple- left-mouse click
  • Select all: Control + A
  • Block select: Control + Alt + mouse drag

Movement shortcuts:

  • Move by word: Control + arrow keys
  • To top: control + Home
  • to bottom: control + end
  • Beginning of line: home
  • End of line: end

Running scripts shortcuts:

  • Run the script in the command area: F5
  • Run the script in the command area, if a one-liner: Return key
  • Run the script in the command area, if a multi-liner: Return key on line with only white-space
  • Enter a blank line in command area: Enter key
  • Run selected text: F5 (puts into command area; a second F5 will run it)
  • Drag text to command area, then F5
  • Stop processing: Escape key
  • Previous command: Up arrow
  • Next command: Down key

Editor

Visual queues:

  • Yellow in margin: line has been edited
  • Green in margin: line has been edited and saved
  • Current line has grey background