commit cd1ae815f7e6e241c8edcda9b1dae2f424268a1f parent 633e0d335d8f3121cdf6853aa3da23342a02ae0b Author: Yuval Langer <yuval.langer@gmail.com> Date: Sat, 28 Sep 2024 06:26:14 +0300 Rename README to an Org Mode file and do some restructuring and add some API. Diffstat:
D | README.md | | | 21 | --------------------- |
A | README.org | | | 83 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
2 files changed, 83 insertions(+), 21 deletions(-)
diff --git a/README.md b/README.md @@ -1,21 +0,0 @@ -detubifier.el! - -Replace taboo things in your kill using predefined rules. - -## Usage: - -Let's say you have the text "https://twitter.com/Nadav_Eyal/status/1809975194926055629" and would rather have something like "https://nitter.poast.org/Nadav_Eyal/status/1809975194926055629" instead. - -A possible solution is to: - -0. Set up `detubifier-regexp-replacement-pairs` using the customize-variable command. -1. Mark that text. -2. Kill it. -3. Run `detubifier-regexp-replacement-pairs'. -4. Yank it in your chat room. - -## Support: - -[Support me 💰 on "buymeacoffee"][moneymoneymoney]! - -[moneymoneymoney]: https://buymeacoffee.com/kakafarm diff --git a/README.org b/README.org @@ -0,0 +1,83 @@ +#+title: detubifier.el +#+author: Yuval Langer https://kaka.farm/ + +* detubifier.el! + +Functions that replace URLs of enshittified social media services with nonenshittified free software front ends. + +** Usage: + +A possible solution is to: + +1. Set up `detubifier-regexp-replacement-pairs` using the customize-variable command. +2. Mark that text. +3. Kill it. +4. Run `detubifier-regexp-replacement-pairs'. +5. Yank it in your chat room. + +** Repositories: + +- https://codeberg.org/kakafarm/emacs-detubifier/ +- https://kaka.farm/~git/emacs-detubifier/ (web front end: <https://kaka.farm/~stagit/emacs-detubifier/>) + +** API (alpha!): + +*** detubifier-browse-url + +- [ ] Add real URLs. + +*** detubifier-custom-detubify-region + +- [ ] Add real URLs. + +#+begin_src emacs-lisp + (equal (let () + (insert "https://youtube.com/moo + https://twitter.com/blah") + (detubifier-custom-detubify-region (point-min) + (point-max)) + (buffer-substring-no-properties (point-min) + (point-max))) + "sdfljdsf sdfkjl https://invidious.jing.rocks/moo + https://nitter.poast.org/blah") +#+end_src + +*** detubifier-custom-detubify-string + +- [ ] Add real URLs. + +(equal (detubifier-custom-detubify-string "https://youtube.com/moo +https://twitter.com/blah") + (concat "sdfljdsf sdfkjl https://invidious.jing.rocks/moo +https://nitter.poast.org/blah")) + +#+begin_src emacs-lisp + (let ((some-twitter-url "https://twitter.com/Nadav_Eyal/status/1809975194926055629")) + (detubifier-custom-detubify-string some-twitter-url)) + ;; => "https://nitter.poast.org/Nadav_Eyal/status/1809975194926055629" +#+end_src + +*** detubifier-detubify-top-kill + +- [ ] Add real URLs. + +*** detubifier-farsidify-region + +- [ ] Add real URLs. + +*** detubifier-farsidify-string + +- [ ] Add real URLs. + +#+begin_src emacs-lisp + (let ((some-twitter-url "https://twitter.com/Nadav_Eyal/status/1809975194926055629")) + (detubifier-custom-detubify-string some-twitter-url)) + ;; => "https://nitter.poast.org/Nadav_Eyal/status/1809975194926055629" +#+end_src + +** Support: + +[Support me 💰 on "buymeacoffee"][moneymoneymoney]! + +[moneymoneymoney]: https://buymeacoffee.com/kakafarm +