Closed bennypowers closed 5 years ago
I understand your background. However, vmp currently does not provide the exact feature you want.
Here is how we can do in your scenario with the current vmp feature..
Select area, then remove "\n" by J
, then let prettier
format to remove extra ,
or manually remove it.
Use split-arguments
operator.
Keystrokes should be g , i {
.(mine is g , ;
since I use shorthand keymap which allow me to use a semicolon as inner-any-pair
text-object).
You can find some info for arguments
tex-object and related operator in this old release notes.
https://github.com/t9md/atom-vim-mode-plus/blob/master/CHANGELOG.old.md#0890
Amazing. Thanks!
Hello! I ❤️ vmp. thank you so much for publishing it.
I often find myself transforming snippets like this:
to this:
and vice-versa.
I'd like it if there was a general operation to toggle this sort of thing.
Contrast current work flow: to collapse object: shift-J as many times as needed to expand object: f space l s return as many times as needed, then manually adjusting indentation.
with a potential workflow:
g z i {
for "toggle collapse inner object".
Thank you for considering this feature.
Checklist