Skip to content

Navigating the screen

Tom Sharp edited this page Apr 26, 2022 · 2 revisions

Several function keys have been provided to help format and manipulate snippets.

  • F6 - Insert a new line after the current cursor location, and move the cursor to that line
  • F14 - Delete the line the cursor is currently on
  • F15 - Split the line the cursor is currently on, moving text to the right of the cursor to a new line

Function key F1 is used to show extended results, where there is not enough space to show the full result on the main REPL screen.

Example showing a long result visible via the F1 key. In the background, you can see that this result did not fit on screen on the main REPL homepage.

Line limit

New snippets are created with 51 lines available for editing. Pressing enter at any time will add or remove lines to ensure that there are always 51 blank lines available in REPL.

Clearing, saving, and loading snippets

The current snippet can be cleared by taking F5. This will permanently remove the existing snippet, and return REPL to displaying an empty snippet.

Save and Load Snippets

Exiting REPL will store the current snippet as an "unsaved snippet". This will still be accessible if you reopen REPL within the same session. If you reopen a snippet in this way and make changes, the original snippet will be lost.

You can choose to save individual snippets which you do not wish to be changed by taking F21, and adding a suitable name for the snippet.

F21 also provides the option to load snippets. Initially, you are shown a list of your saved snippets. It is possible from here to view saved snippets belonging to other users, or all unsaved snippets. A short preview of the snippet is shown on screen, along with the date the snippet was created.

A list of saved snippets in REPLLOAD belonging to the current user (REPL). The snippet is named "Greeting", and a preview of the first few lines of the snippet is shown.

From here, individual snippets can be loaded to the current session, or deleted entirely. Other users snippets can be viewed and loaded, but you are only able to delete your own snippets.

Fixed format rulers

When entering fixed format code, you can add an on-screen ruler by taking F4. This will display a temporary column guide which will be cleared before evaluation.

Example showing REPL with a D-spec fixed format ruler on screen to help define a variable