From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KMK3JgbzHGbbUAEAe85BDQ:P1 (envelope-from ) for ; Mon, 15 Apr 2024 11:27:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KMK3JgbzHGbbUAEAe85BDQ (envelope-from ) for ; Mon, 15 Apr 2024 11:27:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=VPvNCBbG; dmarc=pass (policy=quarantine) header.from=ushin.org; 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=1713173254; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MyZMAJU3uAgRGty1x/1oPSCNuASxp6ey/C4kECSr3bg=; b=j4wwMApUlyQAFzn3asQfU7GMSZCiLCyK0JkgAIi9eB8bG7Sa5ZjXojPVZf5Q+PNmCY/KG8 nV9GgLSgPVOMEhbIl1DHyE5+fy4ZavxuRtoRjQ9818uZeMdqwX56MJ64f219xx8Ua9j3gA Ebpmf/Zh99EjNbZ7jfKdEtW2W4u5ALZFkyWVu7a8PxMHme9V8a3FVUpG3QXr7UXx7+iJ2r 4m3CPhu3+d1+e6pMRUVLATRrIyDUQYZSnTV/oRCUk7L2O0JaUfAj/MISg5SPtdJJn7nU2F G8eWclfGX63OCN6KsYkHels5/gpAGQ9g+yFtLG9K4ykRK1MybIiASyj2QEB7uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ushin.org header.s=key1 header.b=VPvNCBbG; dmarc=pass (policy=quarantine) header.from=ushin.org; 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-Seal: i=1; s=key1; d=yhetil.org; t=1713173254; a=rsa-sha256; cv=none; b=uVuC9Qy17qg/d6mu3oDMSfuOvSDUa6+iEdq027LMm0BYbPHigVmQbZSgDx3DfCn0arBaNS 2s567OFfGHw18AThUDfVaN2+IkJw/ZUfgasK0ff0K7qRck7Ico+tXK4AnNa5ysXDmpMo4f 1nG949k0RgQYG9jGMNXI9sJLAG9tp9XhhaqulAsnGGEp2aZKcQ+BMzAM5CByuTuBqU/EL/ 3A5eapWise9l7zxea5sUScQEP+5acKw6hhedsbBUC5xiXWYblJg0GvjQCZC8swSdOpfMnU 99W21RwEWFZjq05LK4MsmDs+nxwT+wFsvx48DoBpdxBNvsV94TyICClOhLqbUA== 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 0961477FA1 for ; Mon, 15 Apr 2024 11:27:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwIbq-0004Bg-Hn; Mon, 15 Apr 2024 05:26:42 -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 1rwIbo-0004BV-BE for emacs-orgmode@gnu.org; Mon, 15 Apr 2024 05:26:41 -0400 Received: from out-186.mta0.migadu.com ([2001:41d0:1004:224b::ba]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwIbk-0002HA-H9 for emacs-orgmode@gnu.org; Mon, 15 Apr 2024 05:26:39 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ushin.org; s=key1; t=1713173189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=MyZMAJU3uAgRGty1x/1oPSCNuASxp6ey/C4kECSr3bg=; b=VPvNCBbG+QqLbkUUpzvRlsFDVPflRV+iiNO/UzuPQflNcq1tFU4i66VmGI+v1j08AjHOVz jFO0iw/zUNYhDRA7OOV99I2kQ+xbiVutcG2DxFDsBuzycEgC/LNmlbSD4oDJRZG8KknTl7 TWGgs+SSKIDkpHEdq/wgGRAf7B8MwlBb6ZLbOaI9mLkNLlIYhfdS9qWUFsKKcCyAWEyKD/ u4qWA/Mk8fs/fV9FbP4KAFn/nCrCoYuK/oO9OeBAGHL0n4+tEHAU4icqp+WSFweOI2Qs3O j8NmFkQ6s58q5wQqTkImWInzDmcDlOz1P7OC7uGYHdge1BohHI0Nd+/M7gKYow== From: Joseph Turner To: Org Mode Mailing List Cc: Adam Porter , Jonas Bernoulli , Protesilaos Stavrou Subject: Using search options in HTTP-style links Date: Mon, 15 Apr 2024 00:04:57 -0700 Message-ID: <871q77ugcf.fsf@ushin.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:41d0:1004:224b::ba; envelope-from=joseph@ushin.org; helo=out-186.mta0.migadu.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, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.57 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.57 X-Migadu-Queue-Id: 0961477FA1 X-TUID: uC4vu5SKHgV5 Hello! [[info:org#Search Options]] says that search options are intended for file: type links only. However, since Org documents can also be loaded over network protocols like HTTP and hyper://, I'd like to deliberate if/how search options might be encoded inside HTTP-style link fragments. HTTP-style links are URL-encoded with "#"-prefixed link fragments: (let ((domain "https://ushin.org") (filename "needs-list.org") (search-option "::#care")) (format "%s/%s#%s" domain (url-hexify-string filename) (url-hexify-string search-option))) => "https://ushin.org/needs-list.org#%3A%3A%23care" Currently, loading the above URL with EWW... (eww "https://ushin.org/needs-list.org#%3A%3A%23care") ...loads the file in eww-mode with point at the top of the file. I think it would be more useful to instead activate org-mode (or a mode which derives from it - "eww-org-mode"?), decode the link fragment, and then jump to the location specified by the search option. Web browsers like Firefox don't handle Org search options in link fragments, but then again, they don't handle Org documents at all. On my machine, loading https://ushin.org/needs-list.org#%3A%3A%23care in Firefox downloads the file as if the fragment weren't there. What other issues might arise when encoding search options this way? Any other comments/questions welcome :) Thank you! Joseph