From 0481fac64a261738031e6b38254c62effc803e5d Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Sat, 24 Sep 2022 22:54:16 +0200 Subject: Add kmacro for extracting comments from pad --- 2022/organizers-notebook.org | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to '2022/organizers-notebook.org') diff --git a/2022/organizers-notebook.org b/2022/organizers-notebook.org index 967e7e3e..788d5829 100644 --- a/2022/organizers-notebook.org +++ b/2022/organizers-notebook.org @@ -1884,6 +1884,25 @@ Meant to be used with `after-save-hook'." (unless (memq #'emacsconf-export-md-on-save after-save-hook) (message "Hook is no longer active")) #+end_src +** Process review comments from pad +1. ~curl https://etherpad.wikimedia.org/p/[REDACTED]/export/html~ +2. Open curl’d html into browser +3. Copy just the text from the page (i.e. not the html) +4. Paste in Emacs buffer + +Inside emacs: +1. C-s Comments for +2. C-M-s ^[a-z0-9] +3. M-< +4. C-x 3 +5. C-x b comments.org (new buffer) +6. C-x o +7. Run following kmacro (eval then M-x pad-comments, then C-x e until completion) +#+begin_src emacs-lisp +(defalias 'emacsconf-pad-comments + (kmacro "C-s C-s C-a C-SPC C-n C-M-s M-p C-b M-w s-k C-y s-j")) +#+end_src + * Lessons learned :PROPERTIES: :CUSTOM_ID: lessons -- cgit v1.2.3