Fork me on GitHub
#spacemacs
<
2017-02-08
>
rishat15:02:26

@naomarik > would be super nice if there was a way to toggle fold (comment) blocks Try

SPC ;
next after that, you’ll need either ; or motion. SPC ; ; comments/uncomments current line; SPC ; 5 j would comment five lines from current one, etc. Works nicely well in visual mode, too.

zane19:02:59

They want to be able to fold (collapse) comment blocks, not create new ones.

zane19:02:41

At least, that was my reading.

alandipert19:02:01

z a does it for me, aka evil-toggle-fold

alandipert19:02:06

works on comments in elisp, at least

zane19:02:28

Neat! TIL

zane19:02:37

For me it was SPC z . a.

alandipert19:02:53

ah cool, i should probably get to it through SPC myself. i suspect non-SPC entrypoints are likelier to disappear in the future

ag19:02:54

btw, have you guys tried origami for folding? I think I liked it better, but evil-fold covers more languages

ag19:02:52

so I switched to evil, maybe I should’ve figured a way to have origami for those langs that support it and keep evil for the rest?

zane20:02:09

You could totally make your own layer that does that.

naomarik22:02:05

yeah z.a would be good that worked instantly on all comment blocks