Skip to content

feat(explorer): add configurable file type badge indicators - #11

Open
holdyounger wants to merge 1 commit into
quartz-community:mainfrom
holdyounger:feat/canvas-badge
Open

feat(explorer): add configurable file type badge indicators#11
holdyounger wants to merge 1 commit into
quartz-community:mainfrom
holdyounger:feat/canvas-badge

Conversation

@holdyounger

Copy link
Copy Markdown

Add file type badge indicators to Explorer tree entries for .canvas, .base, and other non-markdown files via a new fileTypeBadges option.

  • ExplorerOptions: new fileTypeBadges: Record<string, string> field
  • explorer.inline.ts: detect slug extension from fileTypeBadges keys, render pill badge label
  • explorer.scss: generic nav-file-type-badge / nav-file-type-badge-label styling

Default: { canvas: 'Canvas', base: 'Base' }

Add file type badge indicators to Explorer tree entries for .canvas, .base,
and other non-markdown files via a new fileTypeBadges option.

- ExplorerOptions: new fileTypeBadges: Record<string, string> field
- explorer.inline.ts: detect slug extension from fileTypeBadges keys,
  render pill badge label
- explorer.scss: generic nav-file-type-badge / nav-file-type-badge-label
  styling

Default: { canvas: 'Canvas', base: 'Base' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant