Add tests for angle links.

This commit is contained in:
Tom Alexander 2023-10-08 10:13:15 -04:00
parent 488372b070
commit 8bc79f9ef3
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
16 changed files with 147 additions and 4 deletions

View File

@ -0,0 +1,2 @@
<file+sys://foo>
<file+emacs://foo>

View File

@ -0,0 +1,13 @@
<(foo)>
<((bar))>
<((baz)>
<(lo
rem)>
# These become fuzzy
<(foo) >
< (foo)>
<(foo)::3>

View File

@ -0,0 +1,6 @@
<#foo>
<#fo
o>
<#foo::3>

View File

@ -0,0 +1 @@
<elisp:(local-set-key "\M-\x" 'foo-bar-baz)>

View File

@ -0,0 +1,21 @@
<./simple.org>
<../simple.org>
</simple.org>
<file:simple.org>
<file:sim ple.org>
<file:simp
le.org>
<file:simple.org::3>
<file:simple.org::foo>
<file:simple.org::#foo>
<file:simple.org::foo bar>
<file:simple.org::foo
bar>
<file:simple.org::foo
bar>
<file:simple.org::foo
bar>
<file:simple.org::foo::bar>
<file:simple.org::/foo/>

View File

@ -0,0 +1,6 @@
<elisp.org>
<eli
sp.org>
<elisp.org::3>

View File

@ -0,0 +1,6 @@
<id:83986bdf-987c-465d-8851-44cb4c02a86c>
<id:83986bdf-987c-465d
-8851-44cb4c02a86c>
<id:83986bdf-987c-465d-8851-44cb4c02a86c::foo>

View File

@ -0,0 +1,20 @@
<file:foo>
<file:/bar>
<file://baz>
<file:///lorem>
<file:////ipsum>
<file://///dolar>
<foo>
</bar>
<//baz>
<///lorem>
<////ipsum>
</////dolar>
<https:foo>
<https:/bar>
<https://baz>
<https:///lorem>
<https:////ipsum>
<https://///dolar>

View File

@ -0,0 +1,6 @@
<shell:foo>
<shell:fo
o>
<shell:foo::3>

View File

@ -0,0 +1,16 @@
<file:simple.org::foo>
<file:simple.org::#foo>
<file:simple.org::foo bar>
<file:simple.org::foo
bar>
<file:simple.org::foo::bar>
<file:simple.org::/foo/>
<file://en.wikipedia.org/wiki/Shebang_(Uni::x)>
<file:simple.org::*>
<file:simple.org::* foo>
<file:simple.org::*bar>
<file:simple.org::b*az>

View File

@ -0,0 +1 @@
<https://fizz.buzz/>

View File

@ -0,0 +1,6 @@
#+LINK: foo https://foo.bar/baz#%s
<foo::lorem>
<cat::bat>
#+LINK: cat dog%s
<cat:bat>

View File

@ -0,0 +1 @@
<https://en.wikipedia.org/wiki/Shebang_(Unix)>

View File

@ -7,8 +7,7 @@ bar
file:simple.org::foo::bar
file:simple.org::/foo/
# Does not become a search option because it is inside parenthesis.
https://en.wikipedia.org/wiki/Shebang_(Uni::x)
file://en.wikipedia.org/wiki/Shebang_(Uni::x)
file:simple.org::* foo

View File

@ -0,0 +1,25 @@
non-link text
[[eww://foo]]
[[rmail://foo]]
[[mhe://foo]]
[[irc://foo]]
[[info://foo]]
[[gnus://foo]]
[[docview://foo]]
[[bibtex://foo]]
[[bbdb://foo]]
[[w3m://foo]]
[[doi://foo]]
[[file+sys://foo]]
[[file+emacs://foo]]
[[shell://foo]]
[[news://foo]]
[[mailto://foo]]
[[https://foo]]
[[http://foo]]
[[ftp://foo]]
[[help://foo]]
[[file://foo]]
[[elisp://foo]]
[[randomfakeprotocl://foo]]
non-link text

View File

@ -1,2 +1,16 @@
# Does not become a search option because it is inside parenthesis.
[[https://en.wikipedia.org/wiki/Shebang_(Uni::x)]]
[[file:simple.org::foo]]
[[file:simple.org::#foo]]
[[file:simple.org::foo bar]]
[[file:simple.org::foo
bar]]
[[file:simple.org::foo::bar]]
[[file:simple.org::/foo/]]
[[file://en.wikipedia.org/wiki/Shebang_(Uni::x)]]
[[file:simple.org::*]]
[[file:simple.org::* foo]]
[[file:simple.org::*bar]]
[[file:simple.org::b*az]]