Migrate discord-tricks posts from Gitea

See https://git.bbaovanc.com/bbaovanc/discord-tricks
This commit is contained in:
BBaoVanC 2021-03-25 19:55:57 -05:00
parent 42eed53cef
commit e68c00a4e2
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
4 changed files with 46 additions and 0 deletions

View File

@ -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)*

View File

@ -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)*

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.