emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/hyperdrive 9b3b215444 04/82: WIP


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 9b3b215444 04/82: WIP
Date: Mon, 25 Sep 2023 19:00:49 -0400 (EDT)

branch: elpa/hyperdrive
commit 9b3b2154449b42acf80dfd3309eda784bc41ad4f
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    WIP
---
 tests/org links.org | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/tests/org links.org b/tests/org links.org
index 5ea1dce71c..4cf7392344 100644
--- a/tests/org links.org       
+++ b/tests/org links.org       
@@ -15,15 +15,19 @@
 
 Here are various link types which we want to test.
 
-*** ~hyper://~-prefixed, with or without brackets
+*** DONE ~hyper://~-prefixed, with or without brackets
+:LOGBOOK:
+- State "DONE"       from              [2023-09-06 Wed 18:23]
+:END:
 
 + *Notes:*
 
   + Spaces and such should be URL-encoded :: We decline to automatically 
convert, e.g. spaces to ~%20~ when opening links; they should already be 
encoded.
     + [ ] Consider giving an error when unencoded e.g. spaces are detected.
 
-**** TODO Links without targets
+**** DONE Links without targets
 :LOGBOOK:
+- State "DONE"       from "TODO"       [2023-09-06 Wed 17:44]
 - State "TODO"       from              [2023-08-30 Wed 14:43]
 :END:
 
@@ -34,7 +38,10 @@ Here are various link types which we want to test.
 
   + There are FOUR SLASHES.
     
-**** Links with targets
+**** DONE Links with targets
+:LOGBOOK:
+- State "DONE"       from              [2023-09-06 Wed 17:44]
+:END:
 
 *NOTE:* While in Org mode, these anchored links can only point to headings 
with matching ~CUSTOM_ID~ properties, in hyperdrive we first check for matching 
~CUSTOM_ID~, then ~ID~, then exact heading title content matches.  (The anchor 
part is URL-decoded and the leading ~#~ is discarded.)
 
@@ -61,11 +68,14 @@ Here are various link types which we want to test.
 + [[./links test.org]]
 + [[/links test.org]] :: For non-hyperdrive files, this actually links to a 
file in the root directory of the filesystem.  For hyperdrives, we want this to 
point to a file in the hyperdrive's root.
 
-****** TODO Fix functionality for links like ~[[links test.org]]~
+****** CANCELED Fix functionality for links like ~[[links test.org]]~
 :LOGBOOK:
+- State "CANCELED"   from "TODO"       [2023-09-06 Wed 18:00]
 - State "TODO"       from              [2023-08-29 Tue 16:40]
 :END:
 
+NOTE: This is technically the same as 
[[id:c9711207-4a46-45be-9d67-3dc560249a5b][this link type]].
+
 Org doesn't support this for local files (this syntax would point to a heading 
by that name), so we should follow Org here.  This is actually a bug.
 
 ***** Links to local files
@@ -96,7 +106,6 @@ Org doesn't support this for local files (this syntax would 
point to a heading b
 + [[*Heading A]]
   + Does not work, includes target part in URL sent to server.
 
-
 ****** TODO Specified file
 :LOGBOOK:
 - State "TODO"       from              [2023-08-29 Tue 15:58]
@@ -114,6 +123,9 @@ Org doesn't support this for local files (this syntax would 
point to a heading b
 /Without a ~*~ or ~./~, the link is intended to point to a heading within the 
same document./
 
 ****** Unspecified file (same file)
+:PROPERTIES:
+:ID:       c9711207-4a46-45be-9d67-3dc560249a5b
+:END:
 
 + [[Heading A]]
 
@@ -121,6 +133,8 @@ Org doesn't support this for local files (this syntax would 
point to a heading b
 
 + [[./links test.org::Heading A]]
 + [[/links test.org::Heading A]]
+# + [[~/links test.org::Heading A]]
+# + [[file:links test.org::Heading A]]
 
 ***** Custom IDs: HTML-style, ~#~-anchor-suffixed links
 
@@ -137,8 +151,9 @@ Org doesn't support this for local files (this syntax would 
point to a heading b
       (hyperdrive--org-link-goto "#Heading%20A")
       #+end_src
 
-****** DONE Specified file
+****** TODO Specified file
 :LOGBOOK:
+- State "TODO"       from "DONE"       [2023-09-06 Wed 17:05]
 - State "DONE"       from "TODO"       [2023-08-30 Wed 14:48] \\
   Both of these work.
 - State "TODO"       from              [2023-08-29 Tue 15:58]
@@ -161,7 +176,9 @@ See [[file:tests/org links.org][tests/org links.org]]
 
 /Below this line is a series of headings we use to link to for testing 
purposes./
 
-** Heading A
+[[Heading A]]
+
+** Heading AB
 
 /Heading without IDs (link to heading text)./
 



reply via email to

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