Migrate discord-tricks posts from Gitea
See https://git.bbaovanc.com/bbaovanc/discord-tricks
This commit is contained in:
parent
42eed53cef
commit
e68c00a4e2
23
content/posts/edited-in-middle-of-message-discord.md
Normal file
23
content/posts/edited-in-middle-of-message-discord.md
Normal 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)*
|
23
content/posts/sed-text-substitution-in-discord.md
Normal file
23
content/posts/sed-text-substitution-in-discord.md
Normal 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)*
|
BIN
static/media/discord-tricks/edited-in-middle-of-message.png
Normal file
BIN
static/media/discord-tricks/edited-in-middle-of-message.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
static/media/discord-tricks/sed-text-replacement.mov
Normal file
BIN
static/media/discord-tricks/sed-text-replacement.mov
Normal file
Binary file not shown.
Reference in New Issue
Block a user