Skip to content

feat: open local markdown links in file manager#157

Merged
OlaProeis merged 1 commit into
OlaProeis:0.3.1-experimentalfrom
starSumi:fix/wsl-local-link-open-experimental
Jun 16, 2026
Merged

feat: open local markdown links in file manager#157
OlaProeis merged 1 commit into
OlaProeis:0.3.1-experimentalfrom
starSumi:fix/wsl-local-link-open-experimental

Conversation

@starSumi

Copy link
Copy Markdown
Contributor

This adds first-class local-path handling for rendered markdown links without mixing it into the CI baseline work.

What changed

  • add a shared local-link resolver in src/path_utils.rs
  • support these local target forms:
    • Windows absolute paths like E:\Zero_Base\sumi_os\WSL
    • file:// URLs
    • WSL mount paths like /mnt/e/Zero_Base/sumi_os/WSL
    • relative local targets using current-file and workspace context
  • open resolved local targets in the system file manager instead of treating them as browser-only links
  • route image local-path resolution through the same resolver
  • reuse the same file-manager reveal helper for existing explorer actions

Why

Rendered markdown links currently only open http / https targets. That makes local path links inert even when they point at valid Windows or WSL-backed filesystem locations.

Validation

  • git diff --check
  • cargo test --locked -j 1 path_utils::tests -- --nocapture

Notes

  • Local file targets currently reveal the containing folder in the file manager.
  • This PR does not change wikilink navigation semantics.
  • This PR does not touch the runtime baseline or packaging baseline follow-up work.

@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 74d70623-8021-422d-833c-e54883b5e23b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

OlaProeis added a commit that referenced this pull request Jun 16, 2026
Integrate Star-sumi PR #156 (Linux WebView CI deps) and PR #157 (local
markdown links open in file manager). Land rendered-edit flush and
source-range fixes, video embed sizing, CSV table keyboard nav, ribbon
and tab context menus, preview lock palette command, and related docs
and i18n.

Co-authored-by: Cursor <cursoragent@cursor.com>
@OlaProeis
OlaProeis merged commit 5fc0e14 into OlaProeis:0.3.1-experimental Jun 16, 2026
1 of 4 checks passed
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.

2 participants