From 4a2b130527934e8900920c56ec4ed716e4167040 Mon Sep 17 00:00:00 2001 From: Gia Thanh Vuong Date: Thu, 29 Aug 2019 21:06:17 -0600 Subject: todo --- TODOs.org | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/TODOs.org b/TODOs.org index 75785de..63d729f 100644 --- a/TODOs.org +++ b/TODOs.org @@ -62,7 +62,7 @@ just a private flag on running * DONE remove * in text find and replace raw htlm '>*' with '>-' * add eww link -* TODO long links are cut off +* DONE long links are cut off (get-text-property (point) 'shr-url) (get-text-property (point) 'htmlize-link) (text-properties-at (point)) @@ -89,9 +89,17 @@ with the org buffer, run through it find the text prop of htmlize-link or hack shr insert link -or a simple way chec in dom for a link and change it +** or a simple way chec in dom for a link and change it downside is speed, no we need to iterate and look for a tag and then mutate it, the push it back to the dom. Since the dom is a list + you need to map the whole dom + +it works but it seems a bit slow (can't confirm thsi) and long links looks ugly +** got through the buffer look for each char +- get its text properties 'shr-url and 'htmlize-link +if they are the same then ok, if not assign htmlize-link to value of 'shr-url +better use +https://www.gnu.org/software/emacs/manual/html_node/elisp/Property-Search.html#Property-Search * DONE first run on comment buffer won't have right width also need to shadow shr-use-fonts to nil * DONE display OP post ins ask and OP infor -- cgit v1.2.3