Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 56 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
"license": "MIT",
"devDependencies": {
"@codemirror/lang-css": "^6.3.1",
"@codemirror/language": "^6.12.3",
"@codemirror/state": "^6.6.0",
"@codemirror/view": "^6.43.1",
"@lezer/highlight": "^1.2.1",
"@codemirror/lang-html": "^6.4.11",
"@codemirror/lang-javascript": "^6.2.5",
"@codemirror/lang-json": "^6.0.2",
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/lang-php": "^6.0.2",
"@codemirror/lang-python": "^6.2.1",
"@codemirror/lang-rust": "^6.0.2",
"@codemirror/language": "^6.12.3",
"@codemirror/state": "^6.6.0",
"@codemirror/view": "^6.43.1",
"@eslint/js": "^9.39.4",
"@lezer/highlight": "^1.2.1",
"@types/node": "^22.15.17",
"esbuild": "0.25.5",
"eslint": "^9.39.4",
Expand Down
2 changes: 2 additions & 0 deletions src/codePane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { css } from '@codemirror/lang-css';
import { html } from '@codemirror/lang-html';
import { json } from '@codemirror/lang-json';
import { markdown } from '@codemirror/lang-markdown';
import { php } from '@codemirror/lang-php';

const EXT_LANG: Record<string, () => ReturnType<typeof javascript>> = {
js: () => javascript(),
Expand All @@ -28,6 +29,7 @@ const EXT_LANG: Record<string, () => ReturnType<typeof javascript>> = {
jsonc:() => json(),
md: () => markdown(),
mdx: () => markdown(),
php: () => php(),
};

// Highlight style built entirely from Obsidian's CSS variables so it
Expand Down
1 change: 1 addition & 0 deletions src/fileTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const EXT_ICON: Record<string, [string, string]> = {
svg: ['image', 'so-icon-img'],
webp: ['image', 'so-icon-img'],
ico: ['image', 'so-icon-img'],
php: ['file-code-2', 'so-icon-php'],
};

function fileIcon(name: string): [string, string] {
Expand Down
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
.so-icon-sh { color: #4ade80; }
.so-icon-env { color: #f87171; }
.so-icon-img { color: #c084fc; }
.so-icon-php { color: #777bb4; }
.so-icon-default { color: var(--text-muted); }

.so-tree-label {
Expand Down