No description
Find a file
wanda 7ef52ab58c [Obsidian] check PR
- 移除自定义“svg”相关内容
- fix Do not write to DOM directly using innerHTML/outerHTML property
- fix Use sentence case for UI text.
2026-04-04 20:57:19 +08:00
.github/workflows Initial commit 2026-03-17 14:49:36 +08:00
src [Obsidian] check PR 2026-04-04 20:57:19 +08:00
.editorconfig Initial commit 2026-03-17 14:49:36 +08:00
.gitignore Initial commit 2026-03-17 14:49:36 +08:00
.npmrc Initial commit 2026-03-17 14:49:36 +08:00
AGENTS.md [Obsidian] 2026-03-29 23:12:25 +08:00
AGENTS_EN.md [Obsidian] 2026-03-29 23:12:25 +08:00
esbuild.config.mjs [Obsidian] check PR 2026-04-04 20:57:19 +08:00
eslint.config.mts Initial commit 2026-03-17 14:49:36 +08:00
example_file_bookmark.png [Obsidian] 2026-03-29 23:36:02 +08:00
example_file_interceptor.png [Obsidian] 2026-03-29 23:36:02 +08:00
example_link_bookmark.png [Obsidian] 2026-03-29 23:36:02 +08:00
LICENSE [Obsidian] 2026-03-29 23:42:10 +08:00
manifest.json [Obsidian] 2026-03-30 23:17:26 +08:00
package-lock.json Initial commit 2026-03-17 14:49:36 +08:00
package.json Initial commit 2026-03-17 14:49:36 +08:00
README.md [Obsidian] 2026-03-29 23:36:02 +08:00
README_EN.md [Obsidian] 2026-03-29 23:36:02 +08:00
styles.css [Obsidian] Card Bookmark 2026-03-22 22:12:59 +08:00
tsconfig.json [Obsidian] Web Bookmark 2026-03-20 00:09:10 +08:00
version-bump.mjs Initial commit 2026-03-17 14:49:36 +08:00
versions.json Initial commit 2026-03-17 14:49:36 +08:00

Card Bookmark

Card Bookmark is an Obsidian plugin for turning links and file paths into card-style bookmarks.

It provides three main features:

  • Link bookmarks: insert a code block for a URL and render it as a card.
  • File bookmarks: insert a code block for a vault-relative path and render it as a card.
  • File-explorer click interception: block opening specific file types in the file explorer.

Usage

  1. Open the command palette.
  2. Run Add a link bookmark.
  3. Enter an optional title and a valid URL.
  4. Insert the generated link_bookmark_block code block into your note.

Example:

```link_bookmark_block
link: https://example.com
title: Example
```

Link bookmark example

File bookmark

  1. Open the command palette.
  2. Run Add a file bookmark.
  3. Enter an optional title and a vault-relative path.
  4. Insert the generated file_bookmark_block code block into your note.

Example:

```file_bookmark_block
path: Projects/notes/example.md
title: Example note
```

File bookmark example

File-explorer click interception

This plugin can block file opening in the file explorer based on file type.

  • Enable single-click interception to block opening on click.
  • Enable double-click interception to block opening on double click.
  • Enter extensions as a comma-separated list, for example pdf,zip,apk.

File interceptor example

Tips

  • Shortcuts: assigning hotkeys to both bookmark commands can greatly improve creation speed.
  • File bookmarks: file bookmarks only support files inside the vault. If the path cannot be resolved, you will see an "invalid path" message.
  • Copy file path: right-click a file and choose Copy path - from vault folder to quickly copy the file path.
  • Interception: single click, double click, and file type are all configurable.

Project structure

  • src/main.ts: plugin lifecycle and feature registration
  • src/link_bookmark.ts: link bookmark command and renderer
  • src/file_bookmark.ts: file bookmark command and renderer
  • src/file_click_interceptor.ts: file-explorer click interception
  • src/settings.ts: settings model and settings tab
  • src/modal.ts: bookmark creation modals
  • src/assets/: static assets used by the plugin