mirror of
https://github.com/wanda1993/obsidian-plugin-web-bookmark.git
synced 2026-07-22 13:50:31 +00:00
No description
- 移除自定义“svg”相关内容 - fix Do not write to DOM directly using innerHTML/outerHTML property - fix Use sentence case for UI text. |
||
|---|---|---|
| .github/workflows | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .npmrc | ||
| AGENTS.md | ||
| AGENTS_EN.md | ||
| esbuild.config.mjs | ||
| eslint.config.mts | ||
| example_file_bookmark.png | ||
| example_file_interceptor.png | ||
| example_link_bookmark.png | ||
| LICENSE | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| README_EN.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
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
Link bookmark
- Open the command palette.
- Run
Add a link bookmark. - Enter an optional title and a valid URL.
- Insert the generated
link_bookmark_blockcode block into your note.
Example:
```link_bookmark_block
link: https://example.com
title: Example
```
File bookmark
- Open the command palette.
- Run
Add a file bookmark. - Enter an optional title and a vault-relative path.
- Insert the generated
file_bookmark_blockcode block into your note.
Example:
```file_bookmark_block
path: Projects/notes/example.md
title: Example note
```
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.
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 folderto 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 registrationsrc/link_bookmark.ts: link bookmark command and renderersrc/file_bookmark.ts: file bookmark command and renderersrc/file_click_interceptor.ts: file-explorer click interceptionsrc/settings.ts: settings model and settings tabsrc/modal.ts: bookmark creation modalssrc/assets/: static assets used by the plugin


