-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Added Token Generator Plugin #8910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: SUCCESS
Repo link: Token Generator
Packages added:
- Token Generator
Processing package "Token Generator"
- All checks passed
I guess I can see how this could be useful, although doubtful I'd approve a PR with lots of this stuff in the CSS 😅 Anyway, two points of feedback:
|
Thank you for the feedback.
|
Hi! I would not provide a key-binding, t.i. for this type of command I would recommend opt-in instead of opt-out. Then in the
Note that the provided bindings on Linux and Windows ( Of course, they are ways to program an opt-out for key-bindings but these either add computational overhead on the user side or maintenance burden on the dev side. I don't think this would be justified in this case. You currently use Lastly, there is a mismatch how this plugin/package is named. You use both "Token Generator" and
Note that the name E.g., in your commands file, https://github.com/pxninja/token-generator/blob/43a12dc35d47bd6984ca952aadc3f5ab7713fb0e/Default.sublime-commands#L6-L14
but the People who don't like spaces in paths may use "TokenGenerator", or just stick with Happy coding. |
FWIW, |
This feedback is not clear to me:
Are you saying the primary class needs to be renamed to |
Yes, that's what we all usually do (except in the early wild-west days of Sublime). Or maybe Spaces in python files ( |
Both this ...
... and this ...
I'm okay with whatever naming convention is preferred. I'm simply confused as to what the requirements are. |
Yeah that was a bit short. Take the package name -- as you did -- for the special Sublime files, e.g. "Token Generator.sublime-settings". But the python file should be a valid python module name, and then neither spaces or dashes are allowed. So you go with |
yeah, what he said :) @pxninja let me know when you've handled that, are happy with anything else, and tagged a new release. We're almost ready to hit merge here 🙂 |
|
I see that you've added a setting to disable the context menu item. Much appreciated. However, the is_visible method is going to be used for all menus, so that setting will probably also make the command disappear from the command palette. The way I tend to handle that is by passing a "context" argument, and then checking that argument. |
|
My package is a random token generator intended to be used with CSS, but could be used in other contexts.
There are no packages like it in Package Control.