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

Add ability to customize formatting of chat headers in metadata. #3

Closed
stoweboyd opened this issue Apr 7, 2022 · 4 comments
Closed
Labels
enhancement Small feature or enhancement request

Comments

@stoweboyd
Copy link

It would be great to include options -- either in the plugin controls, or in the chat metadata -- to change the text rendering. For example:

[stowe boyd=h3]
> stowe boyd | this is the comment

Would lead to a chat box with 'stowe boyd' rendered in whatever h3 styling is set to in the theme. Also, this could make the text in the comment foldable, potentially.

@stoweboyd
Copy link
Author

PS I note that when a chat is referenced through a transclusion, the header is rendered differently:
Screen Shot 2022-04-07 at 7 41 20 AM

@adifyr
Copy link
Owner

adifyr commented Apr 9, 2022

PS I note that when a chat is referenced through a transclusion, the header is rendered differently:
Screen Shot 2022-04-07 at 7 41 20 AM

@stoweboyd Could you open a separate issue for this? Also, I've checked with my own themes. Transclusion works fine for me. What theme are you using? Could you tell me in the other issue?

image

@adifyr adifyr changed the title Name of the Chat Add ability to customize chat headers in metadata. Apr 9, 2022
@adifyr adifyr changed the title Add ability to customize chat headers in metadata. Add ability to customize formatting of chat headers in metadata. Apr 9, 2022
@adifyr
Copy link
Owner

adifyr commented Apr 9, 2022

@stoweboyd

Would lead to a chat box with 'stowe boyd' rendered in whatever h3 styling is set to in the theme.

Wouldn't it be a bit weird to have styling per member? Ideally, you would have all messages in the chat set to the same header style.

Also, this could make the text in the comment foldable, potentially.

As far as I know, text folding is an Obsidian feature. The Chat View is rendered in regular HTML. The title is already an h4. I don't think text folding could work that way.

@adifyr adifyr added the enhancement Small feature or enhancement request label Apr 9, 2022
@adifyr adifyr assigned adifyr and unassigned adifyr Apr 9, 2022
@adifyr
Copy link
Owner

adifyr commented Apr 15, 2022

I've added the ability to customize the style of Chat Headers for the entire block in the new version (1.1.0). You can now add a config line to the top of your code block as follows:

{header=h3}

This will change the header styles for all Chat Bubbles in the block as it doesn't make sense to do it speaker-wise.

@adifyr adifyr closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small feature or enhancement request
Projects
None yet
Development

No branches or pull requests

2 participants