Skip to content
Jeremy Laviole edited this page Jan 11, 2017 · 3 revisions

Control of the presentation

  • Left, next slide.
  • Right, previous slide.
  • Escape, quit soby.

Press 'h' to show/hide the other key commands.

Current commands:

  • h show/hide help.
  • c save a frame.
  • l load another presentation.

Experimental commands:

  • a and s start and stop autoload -> experimental. It updates the view if the svg file gets updated.
  • r force a new call to custom_setup
  • g call the java garbage collector (for debug mainly).

Add a new command

You can add a new command by adding a key_action. key_action is a Hash and it contains letters and maps to an array containing the description of the key and a Proc object to call. If you do not know what a Proc object is, you can just type code replacing { my_code }.

  @key_actions['e'] = ["description",
                         Proc.new { my_code }]