Skip to content
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

Emoji snapshot methods #53

Open
nedtwigg opened this issue Dec 19, 2023 · 0 comments
Open

Emoji snapshot methods #53

nedtwigg opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@nedtwigg
Copy link
Member

We will never ship this by default, but it might make sense to do something like what blowdryer did for εΉ²

  • com.diffplug.selfie:selfie-kotlin-emoji
    • expectSelfie -> πŸ”Ž
    • this would only work in kotlin, and it would have to be bracketed with double-backticks, but it stands out visually
    • Unicode has both πŸ”Ž and πŸ”, doesn't really matter which, but we should not do both and :mag_right: works in GitHub but :mag_left: doesn't so that's the tiebreaker
    • another option is expectSelfie -> πŸ“·
  • com.diffplug.selfie:selfie-ku
    • expectSelfie -> πŒ’
    • this is using the old italic letter ku, which would work in java and kotlin

The code would look something like this

object πŒ’ {
  @JvmStatic fun πŒ’(actual: String) = Selfie.expectSelfie(actual)
  @JvmStatic fun πŒ’(actual: Int) = Selfie.expectSelfie(actual)
  @JvmStatic fun πŒ’(actual: Boolean) = Selfie.expectSelfie(actual)
}

It's cute, but it's very easy for people to do themselves in their own projects, and it's probably a bad idea so we shouldn't encourage it by publishing artifacts for it.

The πŸ”Ž has a tiny sliver of functionality, the color does standout just a bit, seems appropriate.

@nedtwigg nedtwigg added the enhancement New feature or request label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant