oskarols / foldcomments

Sublime Text 2/3 plugin for folding (hiding) comments
MIT License
41 stars 8 forks source link

Add support to doc block comments #10

Closed fsmaia closed 8 years ago

fsmaia commented 8 years ago

With the advent of tools like JSDoc and YUIDoc, should be interesting to differentiate docblock comments (in my conception, starting with '/**', single or multiline); and add settings to fold each type of comments (singleline, multiline or docblock).

20Tauri commented 8 years ago

Oskar, I don't know if your are interested in adding this specific feature...

@fsmaia I'm the author of DoxyDoxygen, this plugin manage "docblocks" and can "fold" them... It can be used in addition of FoldComments (no conflict). There's no direct shortcut to fold/untold (you will have to use the palette), but can be added easily with those both commands

view.run_command("doxy_select_comments", {"kind": "doxy"}) # "doxy" mean "docblock"
view.run_command("doxy_fold_comments", {"action": "toggle"}) # or "fold", "unfold"

Hope will help

fsmaia commented 8 years ago

Hi!

Congratz, really nice!

Have you checked my PR?

I thought it was able to do the job, but instead of specific actions I chose to specify fold/unfold behavior through the following settings:

Do you prefer specific actions instead?

Big thanks so far!

oskarols commented 8 years ago

Sorry for showing up tremendously late! Your approach is fine, so I merged it :)

Haven't been using Sublime for a while now, but I'll keep supporting this.