Jun 15, 2023

Code Blocks

Image showing codeblocks in Plain


What's new

You can now use inline code and code blocks with syntax highlighting when sending emails from Plain. Code blocks will automatically detect language, but you can also set it explicitly with ```<language>.

Now you can also use Bold, italic, lists or block quotes as formatting options. To use them, simply select the text or type standard Markdown syntax. These same formatting options are also supported in snippets. Behind the scenes, we’ve completely rebuilt the composer from the ground up (with some help from Tip Tap) so it’ll feel a lot faster, smoother and more performant.

We’re also excited to officially introduce support for snippet variables, which were an undocumented feature until now. Create new snippets by navigating to Settings > Snippets. Then, simply copy and paste the snippet variable into the "Snippet Content" field within your message and the snippet will be replaced with the corresponding customer data.

Here are some supported variables:

For customer-specific details:

  • {{ customer.email }}: This snippet will automatically fill in the customer's email address.

  • {{ customer.fullName }}: Use this snippet to insert the full name of the customer you're communicating with.

  • {{ customer.shortName }}: Insert this snippet to include the customer's abbreviated or shortened name.

For user-specific details:

  • {{ user.publicName }}: This snippet will populate your own public name within the message.

Note: If the corresponding information is missing from the customer's profile, the snippet variable will be replaced by an empty value. This means that no content will be displayed in place of the snippet variable.

Improvements

  • You can now shift + click to batch select customers in a queue for any bulk action

  • You can now send a message and mark a customer as helped at the same time by using the shortcut ⌘ Command + ⌥ Option + Enter

  • When marking a customer as spam, you now automatically go to the next customer

  • If a customer only has a custom timeline entry in the timeline, the subject in the composer is automatically set to the CTE’s title (if available)

  • When creating a new Linear issue, the title will now be auto-populated with the text from the Linear issue search field

Bug Fixes

  • Fixed a bug where mailto: in emails were prefixed with https://

  • Fixed a bug where the search input cursor jumped to the end on every keystroke, even when editing in the middle of the input

Designed, built and written by

Jordan Drake

Engineering

Elise Bach

Engineering