Skip to content

[BUG] Cannot open internal image links in wiki link mode #313

@stelcodes

Description

@stelcodes

Please confirm

  • I am running the latest version of this plugin

Describe the bug
I try to run Telekasten follow_link while hovered over ![[pasted_img_20240303145210.png]] and instead of using xdg-open to display the image, it opens telescope with a single pasted_img_20240303145210.png.md entry. Setting image_subdir doesn't seem to fix or change the behavior at all.

To Reproduce
Steps to reproduce the behavior:

  1. Start nvim
  2. Enable image_link_style = "wiki"
  3. Paste in an image
  4. Try to follow that new link
  5. See telescope suggesting a new markdown file

Expected behavior
For the image to be opened via xdg-open on Linux at least.

Screenshots
If applicable, add screenshots to help explain your problem.

Operating system (please complete the following information):

  • OS: Linux, NixOS

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions