-
Notifications
You must be signed in to change notification settings - Fork 0
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: HelgeSverre/token
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.14
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: HelgeSverre/token
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.15
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 10 commits
- 21 files changed
- 1 contributor
Commits on Jan 9, 2026
-
feat: add HTML file preview support
Extends the existing markdown preview infrastructure to support HTML files: - Added content_to_preview_html() that branches on language type: - Markdown: renders via pulldown-cmark with theming and scroll sync - HTML: displays raw content directly in webview - HTML fragments are wrapped in minimal document structure - Complete HTML documents (with doctype/html tag) are used as-is - Added LanguageId::supports_preview() method for Markdown and HTML - Updated sync_webviews() to use the new unified function - Added tests for all preview content scenarios
Configuration menu - View commit details
-
Copy full SHA for 17b2297 - Browse repository at this point
Copy the full SHA 17b2297View commit details -
feat: enhanced HTML preview with local resource loading
1. Preview follows tab switching: - When switching tabs, preview now updates to show the new file (if it supports preview) instead of closing - For non-previewable files, preview is still closed 2. Local resource loading for HTML preview: - Implemented custom 'token://' protocol handler - HTML files can now load relative resources (CSS, JS, images) - Resources are served from the document's parent directory - Security: path traversal attacks are prevented - Supports common MIME types (images, fonts, scripts, styles) 3. WebviewManager refactored: - New PreviewContent enum: Html vs HtmlFile (with base_dir) - Protocol handler serves buffer content + local resources - Thread-safe shared state for protocol callbacksConfiguration menu - View commit details
-
Copy full SHA for 8b3a634 - Browse repository at this point
Copy the full SHA 8b3a634View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ed437f - Browse repository at this point
Copy the full SHA 5ed437fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38238c6 - Browse repository at this point
Copy the full SHA 38238c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f88b2b - Browse repository at this point
Copy the full SHA 3f88b2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41e0424 - Browse repository at this point
Copy the full SHA 41e0424View commit details -
Configuration menu - View commit details
-
Copy full SHA for d90e000 - Browse repository at this point
Copy the full SHA d90e000View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce2696f - Browse repository at this point
Copy the full SHA ce2696fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ae18b05 - Browse repository at this point
Copy the full SHA ae18b05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c3d861 - Browse repository at this point
Copy the full SHA 7c3d861View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.14...v0.3.15