From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qDdTHeqeL2RzAAEASxT56A (envelope-from ) for ; Fri, 07 Apr 2023 06:41:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YJZgHOqeL2Tr1gAAG6o9tA (envelope-from ) for ; Fri, 07 Apr 2023 06:41:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 83A1CF444 for ; Fri, 7 Apr 2023 06:41:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkdtT-00018w-HM; Fri, 07 Apr 2023 00:40:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkdtQ-00018m-St for emacs-orgmode@gnu.org; Fri, 07 Apr 2023 00:40:08 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkdtO-0002D4-AP for emacs-orgmode@gnu.org; Fri, 07 Apr 2023 00:40:07 -0400 Received: by mail-lj1-x229.google.com with SMTP id q14so42561158ljm.11 for ; Thu, 06 Apr 2023 21:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680842404; x=1683434404; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Xuy+cVtsdFhVfPjNGne0OIUiOhzao4OaRPgpcnahgh8=; b=W0AEDemRPBvBEHRMvUSolHifQDrZl7V4wcFhtD+b/NvxMheGQVWmQGdHgbaaC7tHDR A/cGDJ9HX+d3u7r2qO+3oO+vFDbnY8Qa/5VetGYNDum++z/G3DGWCvK9sUZfN/TGxN+/ ouYMTSnJz4PkTW5q/2ssMqDuqOll05VYBkmwD8v5w9Rik412xYOsoA5OV0bUmXyu6BA4 BU2wD9wVdE272PtG2F4wd12nVt0QfuNKLek6heKhhuYJ6sGYM8as4Fw9sg0Y8GWBtdeX N902syGi8QsoR/LRKGlrU1WkfKkdzDZotkEx8t5tRVcjrF1WWdOtWbTqXkV9DbBBcuCa 5G6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680842404; x=1683434404; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Xuy+cVtsdFhVfPjNGne0OIUiOhzao4OaRPgpcnahgh8=; b=O7/JQKvhVmLCvYaF+o3j/9QEFq4hjroji3tS6+YPncT0LRdWKFM38D4SYD/FsgkcYT TrK3x7fBaU5Hga/mOVyZTipNLos7KuXycMenoKZJu+VH9HspzBtgZbJmA9XjaBiEETqi IAO+kt/IkiRtqNC/tc/K3r3fuV7yhGXcXdQM9K2shVcXBL9U3fQBKICDYFnOUHM8KfR4 p3auz2/PtZFOGfHnmqREUyvEeIPIo6gVKVo4xWBUuVnqn2myYRU3IBTlBe/xWMvGSvhx 90h79r7lZEZ0VAf0vnQO2tvGBtsnhPjbbNVFeQ0kkybpGnhw4H827+s5gqkc97qWaw0q lUjg== X-Gm-Message-State: AAQBX9dmStwS7cjJbx9LN8asURo+61zuPiNDolRxWTHv4shP1B65cQOf Ur7yZJ4k4arkdo/mKpsScQfXrfy7uv+roDhN401cED5fDzKtWg== X-Google-Smtp-Source: AKy350YWrLqFUeW3pHGLG5nhpP6FiUu58ftHA05HhaIegAYIN/uNIQA85kHqMmyl4eIZzqhY5IGvWzAq2o5ovTLETe8= X-Received: by 2002:a05:651c:20b:b0:295:acc0:3017 with SMTP id y11-20020a05651c020b00b00295acc03017mr239009ljn.4.1680842403842; Thu, 06 Apr 2023 21:40:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa6:c444:0:b0:25b:6460:577b with HTTP; Thu, 6 Apr 2023 21:40:02 -0700 (PDT) In-Reply-To: References: From: Samuel Wales Date: Thu, 6 Apr 2023 21:40:02 -0700 Message-ID: Subject: Re: capturing and filling To: Max Nikulin Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=samologist@gmail.com; helo=mail-lj1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680842474; a=rsa-sha256; cv=none; b=n7ZQFbkZEe68SopjkuMRHNkgFp57merGGT2cAHNUMTQvFzrTjFPrHL2ZFK3ya0B3qpGY2Y W1Dj0tv0BoqZ3O7lVaQGEOAZX0Ws25fLbnEVWfs0kq2d92/vhPrCWMPhN6MWhwg2lpZ/SL 8dp24nhza2hTH+0atiFz6VMI0k2ThaBzx7/W/b4XOudJ1BsC2Hvgw7CuNa8Wo6AC2zlsIo A/K0fyGM6dujcVKXG+eJ5MXjfChBvoZ+i13TmhJgVpLj4gm739raDpCRLTDY0xXbR4G8wL 9PkgipjwdA8COKdxqwuv3DyDJZp2tuQqCR8EyKOT/CxLOgbS1TvA1dAbwvftqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=W0AEDemR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680842474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Xuy+cVtsdFhVfPjNGne0OIUiOhzao4OaRPgpcnahgh8=; b=fcMUxy1unV4TyVl1DhFnnbCF1eJtCQp1GoPp+VlG0wYWgzUOBhwI5Q5lIrGQG48EVwX1X0 kPZDy87zLUkHfubeL5QKBErQKhdaskb/JxKyAhaQxV2l/+aGRRU9/cSFwrq0KY5OPuL8HK Df/TTxLwNETmr8F1dfXbAVaXeexkapqQq7oG4JVhUYNxfVhugob0W+zj9Ei4y72UBBRfbS TJAih7JD5fDgQSLiT793Yu8MgH/nuk0IKE7gInyI5kU4N5rNcv/Rjip+Nr9sBMVfB96690 fyvUS7ZJMIgR5WsaPBfpx37eD27tNu02qK+7GIJ99ykYldJc3oS6mEh/tB946g== X-Migadu-Spam-Score: -6.45 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=W0AEDemR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Spam-Score: -6.45 X-Migadu-Queue-Id: 83A1CF444 X-TUID: NsDgpssv/G6q hi max, more below. On 4/6/23, Max Nikulin wrote: > Samuel, in your case, it is your requirement to have non-distracting > single-click capture. ... but one icon for prose/filling and one for lines/nonfilling would be great for me. or even the existing single icon for whichever one i use most, with a right-click menu for other options. maybe other templates. > A workaround is to define 2 capture template: for prose text and for > code. Browser extension should not add template=x query parameter to i was thinking that would be a great solution. however, i cannot implement it. i was thinking elisp workaround might be more straightforward. i am guessing you mean s/should not/should/ here? > org-protocol URI. > > Extension may determine if the captured text pre-formatting, however > there are some complications. Besides
 and  tags, there may
> be 
and elements with white-space: pre-wrap CSS property and > similar. Selection may consist of several regions, each one with mix of > regular and pre-formatted text. i was thinking figuring it out from the selection and the html would be horrendously complex and brittle and error prone. but i could be wrong. > > Actually it is possible to convert selected text to Org markup. use > > %(insert (shell-command-to-string "xclip -t text/html -o | pandoc > -f html -t org -")) > > in your capture template. Possible caveats: headers, especially

may > give undesired effect. i selected one line and it printed that line. i selected your above lines and got Error: target text/html not available. > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com