File: README

package info (click to toggle)
storm-lang 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,028 kB
  • sloc: ansic: 261,471; cpp: 140,432; sh: 14,891; perl: 9,846; python: 2,525; lisp: 2,504; asm: 860; makefile: 678; pascal: 70; java: 52; xml: 37; awk: 12
file content (46 lines) | stat: -rw-r--r-- 1,932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
A simple tool for managing trees.

The program has a very minimal (i.e. non-existent UI). The mouse is used to point at nodes. Clicking
and dragging moves the node under the cursor, or scrolls the entire workspace if the background is
dragged. Apart from that, the following commands are recognized.

The following commands are recognized:

- <numbers> followed by `i`: Insert a new node where the mouse pointer is currently located.

  Example: type `12i` to insert a node with label 12.

- `d`: Delete the node pointed to by the mouse.

- Shift + `d`: Delete the subtree that starts at the node pointed to by the mouse.

- `c`: Clear both outgoing edges from the node pointed to by the mouse.

- `q`: Clear all edges from all nodes.

- `l` or `j`: Add or replace the left child of the node pointed to by the mouse. Click the node that
  the edge should be attached to next.

- `r` or `k`: Add or replace the right child of the node pointed to by the mouse. Click the node
  that the edge should be attached to next.

- *esc*: Cancel the current operation (mainly creating new edges).

- `<` (on Swedish keyboards) or `z`: Insert a `|` node (used to visualize the *current location*
  when using the tool to visualize sorting algorithms).

- <numbers> followed by `e`: Load an example tree. This removes any nodes currently present.

  For example: `1e` loads the file `1.tree`, `2e` loads the file `2.tree` and so on.

- Shift + `l` or Shift + `j`: Rotate the node pointed to by the mouse with its left child.

- Shift + `r` or Shift + `k`: Rotate the node pointed to by the mouse with its right child.

- Shift + `c`: Clone the tree that starts at the node pointed to by the mouse. Place it below the
  cloned tree.

- Ctrl + `z`: Undo (node movements are not tracked). Keep in mind that loading a new graph clears
  the undo stack.

- `a`: Perform automatic layot of the subtree that starts in the node pointed to by the mouse.