@devries-cameron20 / t3code Mirror · read-only / commits / 2eb8829308
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 14:45 UTC

fix(mobile): .markdown, .mdown and .mkd files open with a Markdown preview (#29822)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>

Alex Southwell committed Nov 15, 2026 at 03:10 UTC 2eb8829308fff5ec59bc1573663f88f25a1037f3
2 files changed +10 -3
apps/mobile/src/features/files/filePath.test.ts
+9 -2
@@ -62,11 +62,18 @@ describe("needsWorkspaceFileContents", () => {
62 });
63
64 describe("workspace preview classifiers", () => {
65 - it("treat # and ? as literal filename characters", () => {
65 + it("recognize preview extensions and treat # and ? as literal filename characters", () => {
66 for (const path of ["notes/clip#1.wav", "notes/clip?1.wav", "notes#old/clip.wav"]) {
67 expect(isAudioPreviewFile(path)).toBe(true);
68 }
69 - for (const path of ["docs/draft#1.md", "docs/draft?1.md", "docs#old/draft.md"]) {
69 + for (const path of [
70 + "docs/draft#1.md",
71 + "docs/draft?1.md",
72 + "docs#old/draft.md",
73 + "CHANGELOG.markdown",
74 + "notes.MDOWN",
75 + "todo.mkd",
76 + ]) {
77 expect(isMarkdownPreviewFile(path)).toBe(true);
78 }
79 });
apps/mobile/src/features/files/filePath.ts
+1 -1
@@ -108,7 +108,7 @@ export function isSvgImagePreviewFile(path: string): boolean {
108 }
109
110 export function isMarkdownPreviewFile(path: string): boolean {
111 - return /\.(?:md|mdx)$/i.test(path);
111 + return /\.(?:md|mdx|markdown|mdown|mkd)$/i.test(path);
112 }
113
114 export function needsWorkspaceFileContents(input: {