New Plugin: Obsidian Chat View Is Here!

Hello All! I am proud to announce the release of my first plugin: Obsidian Chat View! Chat View let’s you quickly and easily create elegant & highly customizable Chat UIs in your Markdown Files.

The plugin is feature packed! Here’s what you can do with it:

  • Add headers, text, and timestamps (or any subtext you want).
  • You can even leave out the header or the subtext if you want to represent a continuous flow.
  • Align chat bubbles left, right & even center easily. All you have to do is prefix your messages with >, < or ^.
  • Add delimiters using just 3 dots ...
  • Add comments with the # symbol.
  • Give custom colors to your headers! Pick between 7 different colors!
  • Easy to customize via your own snippets.css file, due to the clear, exclusive naming convention of the plugin’s CSS Classes.

And more features are on the way! Scroll down for a comprehensive usage guide…

Usage

Every chat message must be prefixed with a '<', '>' or '^' for left, right & center aligning the messages respectively. Each chat message consists of 3 parts: The header, message and the subtext. The parts are separated by a '|' character. Take a look at the example below to see how it works:

```chat
< Fitzwilliam Darcy | I've fought against my judgement, my family's expectations... The inferiority of your birth, my rank and circumstance. | 23rd July, 1846 at 5:42 PM
> Elizabeth Bennett | Now hold on, Mr. Darcy, I'm afraid I don't understand where you're going with this. | 23rd July, 1846 at 5:42 PM
```

The above code will generate the following Chat View:

Add Delimiters & Comments

You can add delimiters to your chat view simply by entering '...' on a line. To add a comment, start a line with the '#' character. Take a look at the following example:

```chat
< Fitzwilliam Darcy | Just listen to me, all right? You simply cannot fathom the amount of courage I've had to muster to say this.
# Lizzie gazed at Darcy with a baffled look on her face. Darcy was now sweating profusely. This only unsettled her even more. What was happening?
> Elizabeth Bennett | Mr. Darcy, are you all right? Why did you come here?
...
< Fitzwilliam Darcy | I came here to tell you that I'm in love with you. I'm deeply, unabashedly, utterly in love with you.
```

The above code will generate the following Chat View:

As you may have noticed, I’ve actually left out the subtext from these messages. The Chat View plugin is flexible that way. You can also leave out the header if you like just by starting the message off with the '|' character. For example, the following code:

```chat
< Fitzwilliam Darcy | And I care not for the consequences of what I'm about to do.
< | Elizabeth Bennett, will you marry me? | 23rd July 1846, 5:51 PM
```

Will result in the Chat View seen below:

Colored Headers

To add that last bit of organization & pizazz, the plugin also includes the ability to color-code headers. You may choose from 7 colors to style your headers: [red, green, yellow, blue, purple, orange, grey]. How is this done? Simply add the following mapping anywhere in your code:

[Person Name=color, Other Person Name=color]. As is done in the code you see below:

```chat
[Elizabeth Bennett=green, Fitzwilliam Darcy=yellow]

> Elizabeth Swann | I... But what about... You can't be serious, Mr. Darcy. This is preposterous. After all we've been through, I thought...
> | Yes. I will marry you. | 23rd July, 1846 at 6:02 PM.
# Darcy had no words left. They'd reached a point beyond all mannerisms, all formalities. All that was left was raw love. Only it could speak next.
< Fitzwilliam Darcy | I love you Elizabeth. With all my heart. And I will do so for as long as we shall be together. | 23rd July, 1846 at 6:04 PM.
```

The above code will generate the following Chat View:

Thank you for reading!

This project is published under the MIT License.

13 Likes

Great work, man! I’ll be checking it out later

Hi! I’m proud to announce the release of v1.1.3 of my plugin: Obsidian Chat View! This version brings in new features, fixed bugs and so much more!

New Features

  • Added the ability to customize Chat Bubble Widths, Header Sizes and Header Colors!
  • Tweaked the stylesheet to allow for better user-side CSS Customization!

Bug Fixes

  • Fixed jarring width of Chat Bubbles on Mobile Devices.
  • Fixed bug where Special Characters & Non-English Characters wouldn’t be eligible for color customization by the user.

Have a look at the entire release notes!

5 Likes

Hello All! I’m happy to announce the release of Version 1.2.0 of the Obsidian Chat View Plugin! This release brings with it 2 key features and further enhancements! Check it out:

New Features!

  • WebVTT Support!
    Support for WebVTT, the popular video subtitles format is FINALLY HERE! Use chat-webvtt as your code block header and paste your WebVTT code that you exported from Google Meet, Zoom or Microsoft Teams. The plugin will convert it into an entire Chat View! There’s full support for styling as well!

  • Presenting Minimal Mode:
    Minimal Mode allows you to change the display of your Chat View to look more like a Forum Thread. Simply set {..., mode=minimal} in your configurations line and you’re good to go! This will remove the Chat Bubble look and condense the spacing of your messages. Take a look:

Enhancements!

  • New Colors! Yay!
    Added 3 new colors: [pink, slate, wood] to the list of available color stylings for your Chat Bubbles/Messages.

View The Full Release:

4 Likes

can you explain for novice users where exactly to set this?

[Sussy=green, Bassy=red]
< Sussy | Hello
< Bassy | Hello there

{mode=minimal}

Just add it at the end.

Absolutely love it. Really unique idea which will require equally unique ideas to make the most use out of but it does its thing very well.

Keep up the good work.

thanks for your reply, i’ve been using this plugin a lot over the past month and love the VTT functionality for inserting Zoom transcripts!

I love this plugin.

Would it be possible to add a mode that supports an avatar image. That way you can illustrate visually who is speaking

thanks a lot!

3 Likes

Amazing, is there anyway to add audios in the chat ?