Open Zenoe opened 4 years ago
@Zenoe , thanks for the input.
Did you use make emacs
to try to reproduce your issue in a clean
environment?
@ninrod , sorry I don't quit understand what make emacs
means.
I use doom emacs.
@Zenoe
@ninrod , sorry I don't quit understand what make emacs means. I use doom emacs.
No worries, here.
@ninrod , I've tried make emacs
, it doesn't support evil-surround
. I can't find any evil-surround comand.
Steps are as follows:
Did you get any errors after make
?
I tried make
one more time and got no error.
However I did get error from make emacs
minibuffer: Cannot open load file: No such file or directory, undo-tree.el
seems like make
could not download the undo-tree.el
dependency.
I think the expected behavior would be for there to be a evil-Surround-change
command that adds newlines similar to evil-Surround-region
. That way the commands could behave like this
[
blabla
]
with cgs[[
-> [ blabla ]
and with cgS[[
back to the original.
I thought I could mostly copy the current implementation and change the evil-surround-region
call to include a newline, but doing that would add a new newline after each change. Looking a bit further I found out that evil-surround-delete
will delete the opening newline, but not the closing. Maybe that's why my approach didn't work? My Elisp knowledge isn't good enough to figure that out on my own though.
steps to reproduce
[
c s [ (
the text becomes
but
is expected
System information evil-surround: 20200603.2216 emacs: "27.0.90" (system (type . gnu/linux) (config . "x86_64-pc-linux-gnu") (shell . "/usr/bin/zsh") (uname . "Linux 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64") )