8000 fix: imv preview compatibility with filenames containing spaces or long paths by davidlefebvre19 · Pull Request #748 · sayanarijit/xplr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: imv preview compatibility with filenames containing spaces or long paths #748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

davidlefebvre19
Copy link

This PR improves the existing Image viewer (imv) hack to handle paths containing spaces or long filenames that break imv-msg.

Instead of passing the path directly, the Bash script now:

  • Creates a symlink with a hashed name in /tmp
  • Sends that symlink to imv-msg
  • Automatically deletes the symlink after a short delay to keep /tmp clean

Tested on:

  • Linux (EndeavourOS)
  • i3 + picom + kitty
  • xplr 0.21+

@sayanarijit
Copy link
Owner
sayanarijit commented Apr 20, 2025

Thanks for the improvements. Although I think it’s a bug in imv that it can’t handle filenames with spaces, and should be fixed there.

Also, in the hacks section the snippets provide a minimal and easy to understand way of implementing new features, which are supposed to be customised as per user needs.

For a more sophisticated implementation, I’d publish a plugin and list it in the plugins section.

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
0