# WXME is pissing me off. :-)

**URL:** <https://racket.discourse.group/t/wxme-is-pissing-me-off/3583>\
**Category:** General\
**Created:** [February 22, 2025, 5:58am UTC](https://racket.discourse.group/t/wxme-is-pissing-me-off/3583 "2025-02-22T05:58:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![shhyou](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@shhyou](https://racket.discourse.group/u/shhyou)\
**Post date:** [February 22, 2025, 6:13am UTC](https://racket.discourse.group/t/wxme-is-pissing-me-off/3583/2 "2025-02-22T06:13:21Z")

</div>

The `wxme-port->text-port` function replaces certain text-ish snips with their text representation and replaces images (or other non-textual data) by `.`.

Here is a script that converts WXME to text and _locally_ incorporates WXME conversion into `git diff`. Of course, it wouldn't work on cloud drives or GitHub, and the output likely can't be executed.

> [@Frustrated at WXME files in git repositories? Set a filter!](https://racket.discourse.group/t/frustrated-at-wxme-files-in-git-repositories-set-a-filter/2568):
>
> Having WXME files in git repositories can be frustrating. They are not readable in other editors. Git can't display them in git diff and git show. But don't give up yet! [Git supports custom filters](https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes) that allows one to customize conversion from binary files to text, which can generate useful outputs when working with binary files. Some git implementation already [include](https://github.com/git-for-windows/build-extra/blob/c223c7757745c1df552c0dd4628c368aaea11f32/git-extra/gitattributes#L13)such [configurations](https://github.com/git-for-windows/build-extra/blob/c223c7757745c1df552c0dd4628c368aaea11f32/git-extra/gitconfig#L11-L12) for [PDFs](https://github.com/git-for-windows/build-extra/blob/c223c7757745c1df552c0dd4628c368aaea11f32/git-extra/astextplain#L27-L29). Let's add one for WXME files. Create this racket-wxme-astext script and make it available in you…

---

_[View the full topic](https://racket.discourse.group/t/wxme-is-pissing-me-off/3583)._
