You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i thought to add this to org-web-tools, in order to say, run org-web-tools-read-url-as-org on a link in an elfeed entry or in eww, or on also an org link:
(defunorg-web-tools--get-first-url ()
"Return (shr) URL or org link URL at point, or URL in clipboard, or first URL in the `kill-ring', or nil if none."
(or (shr-url-at-point nil) ; elfeed or eww links
(plist-get (get-text-property (point) 'htmlize-link) :uri) ; org links
(cl-loopfor item in (append (list (gui-get-selection'CLIPBOARD))
kill-ring)
when (and item (string-match (rx bol "http" (optional "s") "://") item))
return item)))
could poss add some others, could poss find more rigorous way of fetching them...
The text was updated successfully, but these errors were encountered:
That would more idiomatically belong in the org-web-tools-read-url-as-org function's interactive form. But it would seem to be a matter of preference, because some users might want the command to ignore any links at point.
i thought to add this to
org-web-tools
, in order to say, runorg-web-tools-read-url-as-org
on a link in an elfeed entry or in eww, or on also an org link:could poss add some others, could poss find more rigorous way of fetching them...
The text was updated successfully, but these errors were encountered: