From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: capturing and filling
Date: Mon, 10 Apr 2023 11:39:58 +0700 [thread overview]
Message-ID: <u103uv$15cl$1@ciao.gmane.io> (raw)
In-Reply-To: <CAJcAo8vmNXsmz1_EDLs-sTpmFUymLHy3fGjwAYMoyP8i7s1Etw@mail.gmail.com>
On 07/04/2023 10:29, Samuel Wales wrote:
> heuristic: loop through every line. if the line qualifies by some
> sub-heuristic, and is more than 2x (window-width), then fill at
> capture time, but only that line, not contiguous ones that do not meet
> the sub-heuristic (different prefix etc.).
Somebody should debug such heuristics. Fortunately no modification of
Org is necessary to evaluate if it may be implemented. Something like
the following may be added to capture template.
%(let* ((query (plist-get org-store-link-plist :query))
(body (plist-get query :body)))
;; wrap lines in body accordingly e.g. to `fill-column'
)
Of course, there should be a function that implements heuristics to
facilitate debugging and to allow unit tests.
prev parent reply other threads:[~2023-04-10 4:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 3:29 capturing and filling Samuel Wales
2023-04-07 4:12 ` Max Nikulin
2023-04-07 4:40 ` Samuel Wales
2023-04-07 5:23 ` Max Nikulin
2023-04-15 1:36 ` Samuel Wales
2023-04-15 3:37 ` Max Nikulin
2023-04-17 7:00 ` Max Nikulin
2023-04-10 4:39 ` Max Nikulin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='u103uv$15cl$1@ciao.gmane.io' \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).