Skip to content
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

Fix #38: zed vs zeditor breaks inverse search #54

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

lnay
Copy link
Collaborator

@lnay lnay commented Jan 16, 2025

Similarly to how the autoconfig detects the presence of different pdf viewers, this PR attempts to detect the command to run zed. This is so that it can be used in inverse-search commands (whenever specified, i.e. just zathura and sioyek).

This attempts to detect:

  • zed executable
  • executables created by third party package managers on linux:
    • zeditor executable
    • zed-editor executable
    • zedit exucutable
  • whether zed is running through flatpak

@lnay lnay merged commit a657d56 into rzukic:main Jan 16, 2025
notpeter pushed a commit to zed-industries/extensions that referenced this pull request Jan 20, 2025
## Change~~s~~
- Improve autoconfig so that inverse-search (with sioyek or zathura)
works in more scenarios out of the box, such as when zed is installed
with flatpak or certain package managers on Linux
(rzukic/zed-latex#54)
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.

1 participant