ApplySyntax icon indicating copy to clipboard operation
ApplySyntax copied to clipboard

Use standardized name for palette entry

Open FichteFoll opened this issue 2 years ago • 4 comments

I keep not finding them because entering prefapply doesn't yield the expected result.

FichteFoll avatar Jan 08 '23 16:01 FichteFoll

I'm not necessarily opposed to preference vs settings, but I generally try to prefix all plugin commands with the plugin name.

facelessuser avatar Jan 08 '23 17:01 facelessuser

Also, it is mentioned "standardized". Where is this standard? Generally, I've standardized my commands as described above.

facelessuser avatar Jan 08 '23 17:01 facelessuser

Mostly it's something that I noticed as a trend in many packages being used and also adapted into the template file for PackageDev. Though I just saw that I forgot to add "Settings" at the end (also in the template). Another argument to group it behind "Preferences" is that this is where it would go in the main menu file.

2023-01-08_19-39-49

https://github.com/SublimeText/PackageDev/blob/742c8154f15d1f9fdb2bc868ca4a4b086ac304c6/plugins/new_resource_file/templates.py#L37-L50

FichteFoll avatar Jan 08 '23 18:01 FichteFoll

Okay, let me think about this. It definitely breaks the convention I've been following, specifically for preferences. I may look at a bigger sample size. I'll take a serious look and consider this as a real possibility. If I end up making the change in this plugin, I imagine it I'll be making this change in all my plugins as I update them, so I want to make sure this is something I want to do.

facelessuser avatar Jan 09 '23 13:01 facelessuser