René's URL Explorer Experiment


Title: feat(files): smarter bullet delete/indent and untitled-file title sync by mzxchandra · Pull Request #5971 · simstudioai/sim · GitHub

Open Graph Title: feat(files): smarter bullet delete/indent and untitled-file title sync by mzxchandra · Pull Request #5971 · simstudioai/sim

X Title: feat(files): smarter bullet delete/indent and untitled-file title sync by mzxchandra · Pull Request #5971 · simstudioai/sim

Description: Summary Two files-module improvements to the markdown editor. Based on realtime-rooms (not staging) so it integrates directly with the live co-editing work and lands together with it — the only overlap was additive prop wiring in files.tsx / file-viewer.tsx / rich-markdown-editor.tsx, resolved here so that branch inherits these fixes conflict-free. Bullet delete/indent + round-trip fix (improvement) Backspace at the start of a list item now outdents a nested item or clears a top-level item to a paragraph in place instead of deleting the row and jumping the caret to the previous block. Enter on an empty nested item outdents. Empty non-trailing top-level items still collapse cleanly (they can't round-trip as a lifted paragraph). Emptiness counts inline atoms (images/mentions), and an empty first block in a multi-block item removes only that block. Fixes a data-corruption round-trip bug: a nested empty bullet ( -) serialized directly under a parent's text and re-parsed as a Setext heading underline, silently turning the parent line into an H2 and dropping the bullet. Serialize now strips nested empty list-item lines only; top-level empty items (placeholders, imported blanks) are preserved and round-trip faithfully. Untitled file → filename sync (feat) While a file is still named untitled(.md), typing a leading heading auto-renames the file after it (debounced 600ms). One-shot: coupling stops once the file has a real name. The reverse direction (rename → auto-insert an H1) was implemented but removed during review: on the collaborative Files page every open client observed the rename and seeded into the shared doc, producing duplicate headings, and it could re-insert a heading a user had just deleted mid-rename. Seeding document content from an async rename transition is the wrong model on a shared editor; the safe, read-only direction (heading → filename) is kept. Test Coverage Round-trip-verified unit tests for every list Backspace/Enter branch and every stripEmptyListItemLines rule, plus the untitled→filename derivation helpers. New/updated: keymap.test.ts, markdown-fidelity.test.ts, untitled-title.test.ts, title-heading.test.ts. Full files-feature + editor-consumer suite: 652 tests pass on the rebased realtime-rooms base. Typecheck + Biome clean. Review Greptile 5/5. Cursor Bugbot findings across rounds — all resolved: isEmpty counted only text, so a bullet holding an inline atom could be deleted → now uses the caret block's content.size. an empty first block in a multi-block item lifted the whole item → now removes only that block. collaborative duplicate-heading race + in-flight-rename re-insert → resolved by removing the name→heading seed (see Summary). Test plan Full files-feature + editor-consumer suite (652) on the rebased realtime-rooms base Typecheck clean; Biome clean Manual E2E: bullet clear/outdent, untitled→heading auto-rename

Open Graph Description: Summary Two files-module improvements to the markdown editor. Based on realtime-rooms (not staging) so it integrates directly with the live co-editing work and lands together with it — the only ove...

X Description: Summary Two files-module improvements to the markdown editor. Based on realtime-rooms (not staging) so it integrates directly with the live co-editing work and lands together with it — the only ove...

Opengraph URL: https://github.com/simstudioai/sim/pull/5971

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:931b3cec-35d9-d597-63b8-42f60f055622
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE648:2C60B8:C19995:1134C92:6AFB60F4
html-safe-noncec8d7965024e50fa227b0d3df7cfc93c9a5f2f9cff71ee4851edd3226ca426587
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjQ4OjJDNjBCODpDMTk5OTU6MTEzNEM5Mjo2QUZCNjBGNCIsInZpc2l0b3JfaWQiOiIxOTkwMDM1NDc4Nzc3OTEzNTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc0ad62e2211c9008c2700ccf1374ab0360c3eb8add9037f8baae853f8b896c26
hovercard-subject-tagpull_request:4139242025
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5971/files
twitter:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/129460234?s=400&v=4
og:image:altSummary Two files-module improvements to the markdown editor. Based on realtime-rooms (not staging) so it integrates directly with the live co-editing work and lands together with it — the only ove...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5971/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5971%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5971%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5971/files
Reloadhttps://github.com/simstudioai/sim/pull/5971/files
Reloadhttps://github.com/simstudioai/sim/pull/5971/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
realtime-roomshttps://github.com/simstudioai/sim/tree/realtime-rooms
files-untitled-rename-and-bulletshttps://github.com/simstudioai/sim/tree/files-untitled-rename-and-bullets
Conversation 56 https://github.com/simstudioai/sim/pull/5971
Commits 11 https://github.com/simstudioai/sim/pull/5971/commits
Checks 4 https://github.com/simstudioai/sim/pull/5971/checks
Files changed https://github.com/simstudioai/sim/pull/5971/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5971/files
feat(files): smarter bullet delete/indent and untitled-file title sync https://github.com/simstudioai/sim/pull/5971/files#top
Show all changes 11 commits https://github.com/simstudioai/sim/pull/5971/files
1585977 improvement(files): smarter bullet delete/indent, fix empty-nested-bu… mzxchandra Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/1585977ed39aa90b477734e39b6d226b29f95b7c
b5b30f6 feat(files): sync an untitled file's name with its leading heading mzxchandra Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/b5b30f636c21bd828ab4882a9b96d11a9c4595ff
2d39f67 fix(files): count inline atoms in list-item emptiness, keep multi-blo… mzxchandra Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/2d39f67e0b2bb9d6126a87595e0ea2a1eb232f05
9cf9045 fix(files): preserve the untitled to named heading seed across a rena… mzxchandra Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/9cf904582545df94414156f88676793756818123
f9b2f9b fix(files): drop the name-to-heading seed, keep title sync one-way mzxchandra Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/f9b2f9bee17f38bfdfb0f3d3d63f5e9d58e3b655
ceda453 fix(files): keep empty lines between paragraphs on reload waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/ceda453ba556baa442efacfd58d472d871409892
b54d0ed fix(files): only auto-name an untitled file when the user can edit waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/b54d0ed21324a3eedc2bd9fffa753d1af52bf653
494a03e fix(files): normalize line endings before the empty-paragraph guard; … waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/494a03e6c99d8494e49200223141f8814ff0dbec
16da289 fix(files): editor audit follow-ups (trailing-blank read-only, collab… waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/16da2892e6f56ec770e0b1da8ce06ab0d8bbf70a
29176a9 fix(files): a remote edit must not cancel the local rename debounce waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/29176a98afebb7808984186153cecb500a6238f3
eae98df docs(files): correct EMPTY_PARAGRAPH_SPACING rationale after trailing… waleedlatif1 Jul 27, 2026 https://github.com/simstudioai/sim/pull/5971/commits/eae98dfa29849823745417ec573b2df9651f5ecd
Clear filters https://github.com/simstudioai/sim/pull/5971/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5971/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5971/files
file-viewer.tsx https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
keymap.test.ts https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
keymap.ts https://github.com/simstudioai/sim/pull/5971/files#diff-861caabe1026b2441210cbb7f68c147b650b0b7e825107efc2dc495ec12c689b
markdown-fidelity.test.ts https://github.com/simstudioai/sim/pull/5971/files#diff-6bedb6ee1251f625c94362b78b2c5ab482732780415082c1b1ba1dd3aa3fd96f
markdown-fidelity.ts https://github.com/simstudioai/sim/pull/5971/files#diff-72ac244deaf0ab3b6e2e96aaafd9ca68e768a57c80f9f00c6937830a896557ce
markdown-parse.test.ts https://github.com/simstudioai/sim/pull/5971/files#diff-91a315ff3c7110b4dd98108374ddfd3c12301f537e43f4da8a7b8617f932df98
markdown-parse.ts https://github.com/simstudioai/sim/pull/5971/files#diff-9f4d1ed8214db9dceefdbf4fe314a6cc2a89000b2a933964baff741f16f5222e
rich-markdown-editor.tsx https://github.com/simstudioai/sim/pull/5971/files#diff-6ddf250be25a5febc97c8c4a2e0f9e93b869e674efbb9bd43358137571ddc05a
title-heading.test.ts https://github.com/simstudioai/sim/pull/5971/files#diff-9992038edfc303b14f9093dda7caa41cc635cc550c6587f54336faa8740a8d35
title-heading.ts https://github.com/simstudioai/sim/pull/5971/files#diff-91d0abacc3856fc5b5aee9ed2bf8479052285e28b0cbd7c201e800ab8967b2e1
files.tsx https://github.com/simstudioai/sim/pull/5971/files#diff-0284e2e46ba0636bd37fb01a0bee2a53844af9bbaf0a5879e3b182c0f34e67a9
untitled-title.test.ts https://github.com/simstudioai/sim/pull/5971/files#diff-3e350206ac0d0b132b07493a81aefd66d5079941fe6fd85d4e918cb384efe68b
untitled-title.ts https://github.com/simstudioai/sim/pull/5971/files#diff-bf8208caec928bdfd67f4aa9cba07ebc9cd6d5c2746beae00097affaaf50475e
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsxhttps://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
View file https://github.com/simstudioai/sim/blob/eae98dfa29849823745417ec573b2df9651f5ecd/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/file-viewer.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5971/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
https://github.com/simstudioai/sim/pull/5971/files#diff-41f31a97adfda85382418ff71f00df02005b2d85b01516c49967857a1ee0b948
.../workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/keymap.test.tshttps://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
View file https://github.com/simstudioai/sim/blob/eae98dfa29849823745417ec573b2df9651f5ecd/apps/sim/app/workspace/%5BworkspaceId%5D/files/components/file-viewer/rich-markdown-editor/keymap.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5971/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
https://github.com/simstudioai/sim/pull/5971/files#diff-31ade9ab863fbb47cec3da49263181a5c0faa666bb55c70fb86ae62bb6427bc8
Please reload this pagehttps://github.com/simstudioai/sim/pull/5971/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.