You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing that origami behaves poorly when dealing with code where braces are placed on a line by themselves.
See the gif-recording below, the command I issue is origami-recursively-toggle-node
Origami folds nicely when braces are placed according to K&R style, but poorly for Allman / BSD / GNU-style.
For example, trying to fold the if on line 6 folds the entire function foo(), which is not what you would expect or want to happen.
The text was updated successfully, but these errors were encountered:
My standpoint is that if origami was working properly, it would be possible to have the cursor placed at the beginning of L6 and issue a command that would fold the body of the if, not the entire function foo().
Is such behavior possible with origami? If so, can you elaborate how to achieve that?
I am experiencing that origami behaves poorly when dealing with code where braces are placed on a line by themselves.
See the gif-recording below, the command I issue is
origami-recursively-toggle-node
Origami folds nicely when braces are placed according to K&R style, but poorly for Allman / BSD / GNU-style.
For example, trying to fold the
if
on line 6 folds the entire functionfoo()
, which is not what you would expect or want to happen.The text was updated successfully, but these errors were encountered: