-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert s
commands to newshell
#375
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. BTW visual mode code is horrid.
This might really need to be squashed hard. |
Damn, my bad. |
d458542
to
36bfe90
Compare
* Rename sj/s* and move them under sH. Remove s= * Rename s-* to sH- * Use sd for "seek delta", which moves relative to the current offset * Enforce <cmd> <arg> syntax. So no more "s+16" but "s +16". Command "sHr" is for redo history, "sHu" for undo history. If one wants to move relative to the current address, he needs to do "sd +10"/"sd -10". * Remove `ss` commands in favour of cmd.seek.silent. This was anyway used mainly for scripts, so no need to replicate all `s` commands under `ss. Change a bit rz_core_seek API to avoid dupped entries in seek history
d4306a3
to
04fc5bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you see those cmd0 with so-1 in agraph.c?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to merge this as is and lets test more manually. I bet not everything is caught with automated tests.
Your checklist for this pull request
Detailed description
sj
/s*
and move them undersH
. Removes=
sd
for "seek delta", which moves relative to the current offsets+16
buts +16
. CommandsHr
is for redo history,sHu
for undo history. If one wants to moverelative to the current address, he needs to do
sd +10
/sd -10
.ss
commands in favour of cmd.seek.silent. This was anywayused mainly for scripts, so no need to replicate all
s
commandsunder
ss
.Test plan
Try all various s commands, visual mode undo/redo.
Closing issues