package down
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=2fc5ff1d236cebf0ad99b5230c5136600c640412276c98aa9a6faab09e311d7467456ca39b49de954b9b7efdad62b3ca1bb8033797bc088ce283c9880756979f
doc/down/Down/Session/index.html
Module Down.Session
Source
Manage sessions.
See the manual.
Sessions
last_name ()
is the last session name that was used with any of the functions of this module; if any and still existing. Persisted accross ocaml
invocations.
list ()
lists available sessions.
load s
loads and executes session s
. If silent
is true
the result of phrases is not printed out (defaults to false
).
edit s
edits session s
in your editor. A session is created if s
does not exist.
of_file ~replace ~file s
takes the contents of file file
and stores it session s
. The function errors if s
exists; unless replace
is true
(defaults to false
).
Recording
Note. Unsaved recorded phrases are persisted across ocaml
sessions.
record
starts recording phrases.
stop
stops recording phrases.
revise ()
edits recorded phrases.
save s
saves recorded phrases to s
, stops recording and clears the recorded phrases. The function errors and the recorded phrases are kept intact if s
exists; unless replace
is true
(defaults to false
). See also append
.
append s
is like save
except it appends to s
or creates it if it does not exist.
Stepping
steps ()
loads a session for stepping through manually via shift-{up,down}
(or C-x C-{p,n}
).
next_step ()
moves to the next step of the stepped session. Usually you do this via shift-down
or C-x C-n
.
prev_step ()
moves the previous step of the stepped session. Usually you do this via shift-up
or C-x C-p
.