Skip to content

Instantly share code, notes, and snippets.

@Endermanbugzjfc
Last active November 17, 2025 11:00
Show Gist options
  • Select an option

  • Save Endermanbugzjfc/b5fa5f027997690ee6a045fb6f085a30 to your computer and use it in GitHub Desktop.

Select an option

Save Endermanbugzjfc/b5fa5f027997690ee6a045fb6f085a30 to your computer and use it in GitHub Desktop.
Slur censor for Kitty terminal
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
map f2 toggle_marker function j-b.py
mark1_foreground gray
mark1_background gray
@Endermanbugzjfc
Copy link
Author

TODO: NixOS module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment