tm4e icon indicating copy to clipboard operation
tm4e copied to clipboard

Usage of term "snippet"

Open amyers735 opened this issue 9 years ago • 3 comments

I just wanted to raise a comment about the usage of the term "snippet" for the language preview in the prefs.

Given that TextMate has a concept of snippets (see https://manual.macromates.com/en/snippets) I think this could be a bit confusing. Is the idea that the snippets in tm4e could later be used the same was as TextMate snippets? Or are they only ever going to be for syntax highlight previews?

amyers735 avatar Nov 05 '17 22:11 amyers735

Given that TextMate has a concept of snippets (see https://manual.macromates.com/en/snippets) I

I didn't know that.

I think this could be a bit confusing.

yes you are right.

Is the idea that the snippets in tm4e could later be used the same was as TextMate snippets? Or are they only ever going to be for syntax highlight previews?

It's just for syntax highlight previews.

@mickaelistria I think we should rename that like previewSnippet, no?

@am2605 what is your suggestion?

angelozerr avatar Nov 05 '17 23:11 angelozerr

previewSnippet sounds okay to me. Or codeSample perhaps?. I'm not sure. :)

amyers735 avatar Nov 06 '17 01:11 amyers735

Whichever would work for me. @am2605 Would you please contribute a PR?

mickaelistria avatar May 03 '18 12:05 mickaelistria