[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)./
- [nongnu] elpa/hyperdrive 5588fb4e1d 71/82: Change/Fix: (hyperdrive--org-link-goto) Don't URI-decode target, (continued)
- [nongnu] elpa/hyperdrive 5588fb4e1d 71/82: Change/Fix: (hyperdrive--org-link-goto) Don't URI-decode target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive dafc7f1b93 72/82: Fix: (hyperdrive--org-link-goto) Use org-link-search, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive c1932fb6fd 74/82: Change: (hyperdrive--org-open-at-point) Include target, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 20dd9efc70 76/82: Tidy, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 0a875bef41 78/82: Fix: Docstring, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive fe3c0c374a 79/82: Tests: Add relative/absolute link parsing tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7d06ffd037 80/82: Meta: Update .gitignore, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7826c10faa 81/82: Merge branch 'wip/org-heading-links', ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 903847d50e 82/82: Tidy: Docstrings, comments, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 670ae8050f 03/82: WIP: Add link tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 9b3b215444 04/82: WIP,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 62c487448f 06/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 28d4b1a6d6 08/82: Add: (hyperdrive-equal-p, -entry-hyperdrive-equal-p), ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive bdf9a94b49 09/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 96d458868b 10/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 8a453f0eb4 14/82: WIP: All tests passing! (so far), ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 82305e861b 15/82: WIP: Have macro define narrower tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive a72cf3820d 17/82: WIP: All tests pass, etc., ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive a040fa2686 18/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 5726648878 21/82: Change: (hyperdrive--format-entry-url) Docstring, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7d3662f842 25/82: Comment: Add TODO, ELPA Syncer, 2023/09/25