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

Wezterm fixes #182

Merged
merged 6 commits into from
Feb 25, 2025
Merged

Wezterm fixes #182

merged 6 commits into from
Feb 25, 2025

Conversation

feature-not-a-bug
Copy link
Contributor

Wezterm image support was not taking the terminal shape and any pane splits into account. This patch reads the dimensions through the Wezterm CLI to constrain the image dimensions to the active pane

Added deps:

  • aeson-casing
  • utf8-string

There was an issue where the wezterm executable was hardcoded. This could probably use a bit more refinement into a configurable option, but as it stands there is a check to determine if "wezterm" or "wezterm.exe" are found as executables on the path.

Happy to make any changes that are needed

Copy link
Owner

@jaspervdj jaspervdj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Code looks good to me, I would avoid the two extra dependencies though, if possible

@feature-not-a-bug
Copy link
Contributor Author

Had to push two commits because I forgot some debugging code. This should be working, but please let me know if anything else needs modification

Screenshot 2025-02-23 232728

To

Screenshot 2025-02-23 232844

@feature-not-a-bug
Copy link
Contributor Author

Retested with these changes and everything seems to still work. Please let me know if anything else needs to be updated

Copy link
Owner

@jaspervdj jaspervdj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@jaspervdj jaspervdj merged commit 0a25a56 into jaspervdj:main Feb 25, 2025
4 checks passed
@feature-not-a-bug feature-not-a-bug deleted the wezterm_fixes branch February 25, 2025 13:30
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