atom-fold-comments icon indicating copy to clipboard operation
atom-fold-comments copied to clipboard

Autofold is not working for me

Open nextgenthemes opened this issue 6 years ago • 6 comments

If autofold is supposed to automatically fold comments when I open new files, its not working for php files for me.

Manual folding by calling the command with the command palette works fine.

nextgenthemes avatar Nov 18 '17 16:11 nextgenthemes

Actually toggling it once also made new files fold comments, so it kind of works but not as I expected.

nextgenthemes avatar Nov 18 '17 17:11 nextgenthemes

@nextgenthemes I'm sorry that it's not working as expected! You are very welcome to take a look at the code and make a pull request if you feel like there would be a benefit from changing the behavior - this is open source!

jescalan avatar Nov 18 '17 20:11 jescalan

Not a JS programmer, I am better with PHP. Obviously this is open source, I stick to reporting on this one if you don't mind.

What I expect is that when the autofold option it turned on that new files/projects opened ... actually start with comments folded. I can only guess how it works, it seems you have have to trigger it once every time when you open a new project or something. I just had to manually trigger it again.

Or maybe the trigger to folding everything is for the entire project?

nextgenthemes avatar Nov 18 '17 22:11 nextgenthemes

@nextgenthemes I definitely don't mind, but I do not have the same issue, nor do I have time to fix this for you - sorry! You'd have to take a shot at it anyway or see if maybe someone else is willing to help.

jescalan avatar Nov 18 '17 22:11 jescalan

I have the same issue with block comments in a C source file. Autofold does not work, but using toggle, fold all or unfold all works fine.

PaulDance avatar Jun 09 '19 12:06 PaulDance

@PositivePaulo ok, so what is your plan, given the context of this thread?

jescalan avatar Jun 09 '19 16:06 jescalan