Skip to content

Show smart previews for SQL and markdown cells in minimap#8466

Merged
manzt merged 1 commit intomainfrom
push-szszuyxovvky
Feb 25, 2026
Merged

Show smart previews for SQL and markdown cells in minimap#8466
manzt merged 1 commit intomainfrom
push-szszuyxovvky

Conversation

@manzt
Copy link
Collaborator

@manzt manzt commented Feb 25, 2026

Fixes #8457

The dependency minimap previously showed the raw first line of every cell, which meant SQL and markdown cells displayed unhelpful boilerplate like mo.md(f""" or _df = mo.sql(f""". These changes extract the inner content (using smart-cells helpers) to show the first meaningful line instead.

We could consider some alternative preview (e.g., a summary comment or visual indicator of cell type), but my experiments led to a lot of visual noise/clutter and if found the stripping simple & effective.

Screenshot 2026-02-25 at 2 01 49 PM

Fixes #8457

The dependency minimap previously showed the raw first line of every
cell, which meant SQL and markdown cells displayed unhelpful boilerplate
like `mo.md(f"""` or `_df = mo.sql(f"""`. These changes extract the
inner content (using smart-cells helpers) to show the first meaningful
line instead.

We could consider some alternative preview (e.g., a summary comment or
visual indicator of cell type), but my experiments led to a lot of
visual noise/clutter.
@manzt manzt requested a review from Light2Dark as a code owner February 25, 2026 19:06
@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Building Building Preview, Comment Feb 25, 2026 7:06pm

Request Review

Comment on lines +10 to +11
const markdownParser = new MarkdownParser();
const sqlParser = new SQLParser();
Copy link
Collaborator

@Light2Dark Light2Dark Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one alternative, but I think your solution is better, is to pull LanguageAdapters.markdown.transformIn
but I think the sql one has side effects.

@Light2Dark
Copy link
Collaborator

CI failure is unrelated

@manzt manzt merged commit 7396b11 into main Feb 25, 2026
34 of 38 checks passed
@manzt manzt deleted the push-szszuyxovvky branch February 25, 2026 19:35
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

Successfully merging this pull request may close these issues.

Show first content line of unnamed MD and SQL cells in dependency minimap

2 participants