Closed ninrod closed 7 years ago
If I understand correctly, this snippet defines interactive commands align-repeat-comma
, align-repeat-semicolon
, etc. Plus it instructs align.el to repeat the alignment. Is this correct?
At this point, evil-lion also repeats the alignment, but it would be hice to have an option not to. For example, it should be possible to align on the first instance of ,
instead of all of them. I might add this in the future.
If I understand correctly, this snippet defines interactive commands align-repeat-comma, align-repeat-semicolon, etc. Plus it instructs align.el to repeat the alignment. Is this correct?
Yes that is corret.
@edkolev If I understand this correctly, vim-lion
uses count to repeat alignment, so that 1gLip,
will align just the first comma.
@rlister exactly.
I've added experimental support for COUNT 1
since it was simple to implement https://github.com/edkolev/evil-lion/commit/da324d54e539f042a85344d1c168b69106896b8b
So this should now work on the first occurrence of comma: 1 gL ip ,
At this point, only 1
is supported.
Refs #9
Gentleman, after the last commit, I think we can safely close this.
This is shaping up to be a great package in the evil ecosystem.
Thanks, and thank you for your valuable input!
Spacemacs has some interesting functions regarding alignment right here.
Consider incorporating some the functionality into lion. the align-repeat seems to be the most useful. Here's the snippet:
Thanks again for the package.