Last active
November 17, 2025 11:00
-
-
Save Endermanbugzjfc/b5fa5f027997690ee6a045fb6f085a30 to your computer and use it in GitHub Desktop.
Slur censor for Kitty terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import base64 | |
| MARKER_GROUP = 1 | |
| slur = base64.b64decode("am9i").decode("utf-8") | |
| # print(slur) | |
| def marker(text): | |
| for match in re.finditer(slur, text, re.IGNORECASE): | |
| span = match.span() | |
| # print(span[0], span[1], MARKER_GROUP) | |
| yield span[0] + 1, span[0] + 1, MARKER_GROUP | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| map f2 toggle_marker function j-b.py | |
| mark1_foreground gray | |
| mark1_background gray |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: NixOS module