diff --git a/content/posts/edited-in-middle-of-message-discord.md b/content/posts/edited-in-middle-of-message-discord.md new file mode 100644 index 0000000..1f25ea3 --- /dev/null +++ b/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)* diff --git a/content/posts/sed-text-substitution-in-discord.md b/content/posts/sed-text-substitution-in-discord.md new file mode 100644 index 0000000..cc1eb3a --- /dev/null +++ b/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)* diff --git a/static/media/discord-tricks/edited-in-middle-of-message.png b/static/media/discord-tricks/edited-in-middle-of-message.png new file mode 100644 index 0000000..38a2077 Binary files /dev/null and b/static/media/discord-tricks/edited-in-middle-of-message.png differ diff --git a/static/media/discord-tricks/sed-text-replacement.mov b/static/media/discord-tricks/sed-text-replacement.mov new file mode 100644 index 0000000..eea43b3 Binary files /dev/null and b/static/media/discord-tricks/sed-text-replacement.mov differ