|
From: | Max Nikulin |
Subject: | Re: capturing and filling |
Date: | Mon, 10 Apr 2023 11:39:58 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
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 in Thread] | Current Thread | [Next in Thread] |