Open robert-strandh opened 8 months ago
The command names are taken from Emacs. I'm not sure whether it makes more sense to use the well-known names or try to be more consistent and use new names. For the commands in the following list, the difference is "kill" vs. "delete". The text.editing library always uses "delete" (with "forward" and "backward") while Emacs uses "delete", "erase" and "kill" in the names of similar commands.
Motion
C-M-f
-> com-forward-expression
C-M-b
-> com-backward-expression
C-M-e
-> com-forward-toplevel-expression
or ~end-of-defun
~ end-of-toplevel-expression
C-M-a
-> com-backward-toplevel-expression
or ~beginning-of-defun
~ beginning-of-toplevel-expression
C-M-u
-> up expressionDeletion
C-M-k
-> com-delete-expression-forward
C-M-<backspace>
-> com-delete-expression-backward
Marking
C-M-<space>
-> com-mark-expression
C-M-h
-> com-mark-toplevel-expression
Structure Editing
M-r
-> com-raise-expression-forward
M-s
-> com-splice-expression-backward
M-S
-> com-split-expression
M-J
-> com-join-expressions
C-<left>
-> com-barf-expression-forward
C-<right>
-> com-slurp-expression-forward
@splittist was kind enough to collect this list of Zmacs commands and keybindings:
Zmacs
Backward Sexp C-M-b
Backward Sexp No Up
Forward Sexp C-M-f
Forward Sexp No Up
Backward Down List
Backward List C-M-p
Backward Up List C-M-(
Down List C-M-d
Forward List C-M-n
Forward Up List C-M-)
Move Over ) M-)
Beginning of Definition C-M-[
End of Definition C-M-]
Exchange Sexps C-M-t
Mark Sexp C-M-@
Mark Definition C-M-h
Backward Kill Sexp C-M-Rubout
Kill Sexp C-M-k
C-M-f, C-M-b, C-M-a, C-M-e are not associated with any commands.