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

Correct card size for content #15

Open
Loudbea7 opened this issue Dec 28, 2024 · 1 comment
Open

Correct card size for content #15

Loudbea7 opened this issue Dec 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request needs research Need to understand the issue solution more

Comments

@Loudbea7
Copy link

It would be nice to keep the "relative" size required to show the card text.
(This was obtained using the python mindmd.py -c -t command)

1:
Original smmx:
image
Canvas after conversion:
image
It seems there are a bunch of new lines in each card that weren't there in the original.
image

What I'm looking for:
image

2:
Some cards aren't retaining new lines.
image
image
image

What I'm looking for:
image

I think this could be happening because I use symbols like *word or #word not in the way markdown format works. That's an issue with what I'm doing and how Obsidian handles MD format though.

3:
It seems all the cards have the same size regarding the content length.
The best output I think it would be for the cards to be big enough to show all the content, although there are some options in how to handle that.

Here are some ideas:
Short text: Width and height not bigger than needed to show the text without wrapping or cropping.
Continuous long text without line breaks: a fixed width with wrap around, and a height long enough to show all text without cropping or the need to scroll. It could be a ratio to make it square or rectangular, just an idea.
Short text with many lines: Width enough so the text doesn't wrap. High enough to show all text without cropping or the need to scroll.

@djsudduth djsudduth self-assigned this Dec 28, 2024
@djsudduth
Copy link
Owner

djsudduth commented Dec 29, 2024

This one is going to be very difficult. Just like colors, Simplemind files don't have width and height values of the nodes. Plus, the font size determination in Obsidian will be difficult. I'll have to think about this one.

PS - just to note, you can spread those canvas nodes out in the settings.cfg file by changing the scale factor.
canvas_scale = 2.2 is the current default. Setting it to about 2.5 to 3.5 should stop your overlapping cards on the canvas.

@djsudduth djsudduth added enhancement New feature or request needs research Need to understand the issue solution more labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs research Need to understand the issue solution more
Projects
None yet
Development

No branches or pull requests

2 participants