emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Feature] add a new org-attach dispatcher command to offline save we


From: stardiviner
Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page
Date: Thu, 28 May 2020 14:37:28 +0800
User-agent: mu4e 1.4; emacs 28.0.50

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Matthew Lundin <mdl@imapmail.org> writes:

> stardiviner <numbchild@gmail.com> writes:
>
>> I attached the patch.
>>
>> I think this feature will be helpful for use who archive web page data 
>> usually
>> like me. To be more portable, I also added an defcustom option for other
>> external command. And use an if condition to detect whether external command
>> available, else warning user.
>
> This looks helpful.

Yes, this is helpful. Especially for archiving modern web pages.

> but I think this should be an add-on rather than integrated into the
> org-attach.

I more like an alternative version of [C-c C-a u] version which not downloading
the file, just download the web page instead.

> I'm glad to learn about monolith, but far fewer users are likely to have it
> installed than have wget or curl installed.

This option is not enabled by default or forced, The defcustom option will try
to find the command. It's just an option. Many Windows user also neither have
wget nor curl installed. That considering will ban lots of functionality. I did
an search in Org Mode source code, I found some items like org-feed.el which
using wget and curl. Like most Babel series, ob-plantuml.el etc, they all reply
on external stuff.

You might also want to check out org-board, which has similar
> functionality:
>
> https://github.com/scallywag/org-board
>

I have used org-board before, but it's just not perfect for my need (well,
personal experience just). There are some disadvantages, like complex operation,
too many steps to archive web page, many files (bad for Org directory backup)
etc. And wget or curl is bad for archive modern web pages. They are old for old
web pages.

The only disadvantage of my patch is that "monolith" is not in Emacs or Org Mode
built-in directly. Org Mode is an open source project, so it does not contains
not open source stuff, I agree. I don't think a line of code ~(executable-find
"monolith")~ is against this principle.

Best regards.

- -- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      
-----BEGIN PGP SIGNATURE-----

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7PXCgUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNBgQf/TCfGrMuLzGQSx0N1zzLmd2nX+tTj
6CUJd82SWpHqwI4QZX1BNd8JLpp5OKOw8o3LZi9y5UigOIxrh8DG51vUn+sJBvl5
iaBx3ao/K6Ff1ytMFnCcs+d9ohCj9mUTD1ZSt3LYjG1tJI1uqEoPi16smd84KSUQ
Q8QqYauYarotF+JityGBII3RqpY1GlH5xWYFauE/t5KVPaf8tOueYwbm9FehOWuq
ZKDzmuNkDnJfLRcz7ovEMJk0wrk6mwTjIYKhnrZiPDj9vGyR7ZfrRC0yZDjYgwaG
p9vDZkFwTbPeQUrE1BJOo4N/h2HNoNB0b2ojpvgm52PnlvYvQEyWJxVaLg==
=FsnW
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]