Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings to replace text as it's being sent #1801

Open
1 task done
BlankEclair opened this issue Aug 31, 2024 · 0 comments
Open
1 task done

Add settings to replace text as it's being sent #1801

BlankEclair opened this issue Aug 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@BlankEclair
Copy link

The Problem

  • I want to use a shruggie (¯\_(ツ)_/¯) at the end of my sentences, but I have to copy-paste it to do so.
  • Whenever I want to send ">///<", it becomes a blockquote of "///<".

The Solution

For a generic solution, have something that replaces text that you send, so that I could use something like "<shrug>" in place of pasting it in, and nheko will replace it with a "¯\_(ツ)_/¯" when sending the message. Likewise, I could write a filter for "^(>/+<)" and have it be replaced by "<span>\1</span>" to workaround the automatic quoting.

Ideally this should have (optional) regex support, so that I can have more complex replacements (such as the >///< example).

Alternatives

  • For ¯\_(ツ)_/¯:

    • Use /shrug (but it prepends the shruggie at the start of the message, not appending it to the end)
  • For >///<:

    • Disable markdown by default (not a solution since I do want it ~80% of the time)
    • Use /plain (cumbersome)
    • Escape it manually (cumbersome, Deluxe Edition)

Additional context

The IRC client I use, Konversation, supports incoming and/or outcoming text replaces:

Though at the moment, I'm only interested in outbound text replacing.

Happens in the latest version

  • Yes, this feature is still missing.
@BlankEclair BlankEclair added the enhancement New feature or request label Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant