-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add to Package Control #1
Comments
Hey, thanks! I'm assuming you found Comment Bang useful, rather than the LaTeX stuff, right? I began this package with the intention of improving the way the Symbol List was populated, especially in HTML, CSS, etc. -- but I lost interest after I realized that the limitations were quite significant. I still use Comment Bang daily, but because it's such a small tweak I thought it would be a little foolish to bundle it for Package Control. |
Yeah, just Comment Bang, I don't work with LaTeX. I was actually looking for a way to have Might be a small change, but it is kinda handy, and without looking too much into it, I wouldn't know what/where to make the changes, so it might be useful for other people like me. And yeah, downloading the file and copying it into the packages folder is not too much work either :) |
The best way to install a package that's not in Package Control is use Package Control. There's a command to add a repository (in this case: The original impetus for Comment Bang was a discussion about Is what you're looking as follows?:
The object here would be that "Lorem Ipsum" would be displayed in the Symbol List. (There's also a Anything else? |
Meh. The following does what I described above: Let me know if it makes sense. If useful, it should really go under some Objective-C package -- if it doesn't exist already... |
Thanks for that Package Control tip.
|
You're correct. I had limited it to Objective-C, because that's what I guessed you wanted. I switched it to be syntax agnostic, but it's kind of a kludge at the moment. It doesn't support any syntax other than Have a look and let me know what you think. I am stripping the BTW, if we're going to have more discussion and tweaking, do you mind opening a separate issue? Also, the new preference file will conflict with Comment Bang. You can only use one of these at a time, because they both swallow all the comment scopes. (Though if you have both Comment Bang will kick in first because it's prior in alphabetical order. I think, at least.) |
I am using your Please close/keep open the issue as you see fit. With your tip for custom adding a repo to Package Control, things are easy enough I think. |
I just pushed an improved version of the I've also made it a little looser:
Both of these seem to me to good (since pragma mark is designed for human consumption), but I can revert them if you think that it might cause problems. One more question: I had stylized comment bang a little bit, removing the comment punctuation but maintaining the exclamation mark. In this case, I've removed the |
Both of those changes look good to me. I'll continue using Pragma Mark for the sake of consistency, but I like how Comment Bang puts ! and a few spaces before the comment contents - helps separate it in the symbols list. I just noticed that Comment Bang and Pragma Mark can't run together - might want to add a note somewhere in the project description. |
Yup. That's the idea. How would you format the Pragma Mark to stand out in the list? I'm re-writing the comments anyway; it's only a matter of deciding what makes sense/looks good and I'll put it in.
I know. I haven't updated the docs. I would much prefer to fix this than to document the limitation. But I think it can't be helped because both Comment Bang and Pragma Mark work by swallowing all comment scopes. The only way I can think of making this work is by limiting one or both of them to specific syntaxes. Any ideas? What languages are using Pragma Mark in? Does it make sense not to use Comment Bang in those languages? If you can list them I can exclude them. (If any of this makes sense. The way ST handles Symbol Lists is... frustrating :) |
Hi Alex, Thank you! |
Thanks for writing this, I find it really useful. Perhaps you could consider adding this to Package Control for Sublime Text.
https://sublime.wbond.net/
The text was updated successfully, but these errors were encountered: