Skip to content

Instantly share code, notes, and snippets.

@eraserhd
Created November 12, 2019 01:29
Show Gist options
  • Save eraserhd/2cef674f5d7269d79ba08cd50271389e to your computer and use it in GitHub Desktop.
Save eraserhd/2cef674f5d7269d79ba08cd50271389e to your computer and use it in GitHub Desktop.
Mad ramblings about registers
I think the idea I was working with is that a large number of primitives are just
register copies, so I was thinking about introducing <a-">, which is a kind of
"register copy" operator, making a bunch of primitives redundant.
"& = current selections
y = <a-">."
R = <a-">".
<a-R> = <a-">"<a-_>.
z = <a-">^&
Z = <a-">&^
<a-d> = <a-">_.
P = <a-">"<gt>
<a-P> = <a-">"<a-_><gt>
p = <a-">"<lt>
<a-p> = <a-">"<a-_><lt>
<c-s> = <a-">&<c-s>&y
<c-o> = <a-">&<c-o>&y
d. = ??? _ -> . -> "
"<c-s>y
"<c-o>p
"<c-i>p
* "& becomes the selections register
* <c-s>, <c-o>, <c-i> take a register (default "&)
* all registers become stacks
* allow <c-s>, <c-o>, <c-i>, <c-=> after "
* y/c/d act like "<c-s>y/c/d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment