Browse Source

Migrate discord-tricks posts from Gitea

See https://git.bbaovanc.com/bbaovanc/discord-tricks
full-text-search-db
BBaoVanC 4 months ago
parent
commit
e68c00a4e2
Signed by: bbaovanc GPG Key ID: 18089E4E3CCF1D3A
  1. 23
      content/posts/edited-in-middle-of-message-discord.md
  2. 23
      content/posts/sed-text-substitution-in-discord.md
  3. BIN
      static/media/discord-tricks/edited-in-middle-of-message.png
  4. BIN
      static/media/discord-tricks/sed-text-replacement.mov

23
content/posts/edited-in-middle-of-message-discord.md

@ -0,0 +1,23 @@
+++
title = "Put (edited) in the middle of a message in Discord"
date = "2021-03-25T18:48:34-05:00"
author = "bbaovanc"
authorTwitter = "" #do not include @
cover = "media/discord-tricks/edited-in-middle-of-message.png"
tags = ["discord-tricks"]
keywords = ["discord", "edited"]
description = "With a bit of trickery using the RLE character (U+202B), you can get the (edited) text on a message to be somewhere other than at the end of the message."
showFullContent = false
+++
## Tutorial
1. Copy the "right-to-left embedding" character (U+202A) to your clipboard.
2. Open editing box of a message
3. Delete all text inside
4. Paste the character
5. Type the text you want on the right of `(edited)`
6. Press space and paste the character
7. Type the text you want on the left of `(edited)`
*This post was adapted from [gitea:bbaovanc/discord-tricks](https://git.bbaovanc.com/bbaovanc/discord-tricks)*

23
content/posts/sed-text-substitution-in-discord.md

@ -0,0 +1,23 @@
+++
title = "Text Substitution in Discord using `sed`"
date = "2021-03-25T18:48:15-05:00"
author = "bbaovanc"
authorTwitter = "" #do not include @
tags = ["discord-tricks", "sed"]
keywords = ["discord", "sed", "text", "replacement"]
description = "Discord has (very primitive) support for text replacement using `sed` syntax."
showFullContent = false
+++
## How-to
[Example Video](/blog/media/discord-tricks/sed-text-replacement.mov)
If you send a message using `sed` substitution format (`s/old text/new text`), Discord will execute it on the message you've last sent.
## Caveats
- Regex is not supported
- Global substitution is not supported
*This post was adapted from [gitea:bbaovanc/discord-tricks](https://git.bbaovanc.com/bbaovanc/discord-tricks)*

BIN
static/media/discord-tricks/edited-in-middle-of-message.png

After

Width: 215  |  Height: 53  |  Size: 5.8 KiB

BIN
static/media/discord-tricks/sed-text-replacement.mov