Add tests for angle links.
This commit is contained in:
parent
488372b070
commit
8bc79f9ef3
2
org_mode_samples/object/angle_link/application.org
Normal file
2
org_mode_samples/object/angle_link/application.org
Normal file
@ -0,0 +1,2 @@
|
||||
<file+sys://foo>
|
||||
<file+emacs://foo>
|
13
org_mode_samples/object/angle_link/code_ref_link.org
Normal file
13
org_mode_samples/object/angle_link/code_ref_link.org
Normal file
@ -0,0 +1,13 @@
|
||||
<(foo)>
|
||||
|
||||
<((bar))>
|
||||
|
||||
<((baz)>
|
||||
|
||||
<(lo
|
||||
rem)>
|
||||
|
||||
# These become fuzzy
|
||||
<(foo) >
|
||||
< (foo)>
|
||||
<(foo)::3>
|
6
org_mode_samples/object/angle_link/custom_id_link.org
Normal file
6
org_mode_samples/object/angle_link/custom_id_link.org
Normal file
@ -0,0 +1,6 @@
|
||||
<#foo>
|
||||
|
||||
<#fo
|
||||
o>
|
||||
|
||||
<#foo::3>
|
1
org_mode_samples/object/angle_link/elisp.org
Normal file
1
org_mode_samples/object/angle_link/elisp.org
Normal file
@ -0,0 +1 @@
|
||||
<elisp:(local-set-key "\M-\x" 'foo-bar-baz)>
|
21
org_mode_samples/object/angle_link/file_link.org
Normal file
21
org_mode_samples/object/angle_link/file_link.org
Normal 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/>
|
6
org_mode_samples/object/angle_link/fuzzy_link.org
Normal file
6
org_mode_samples/object/angle_link/fuzzy_link.org
Normal file
@ -0,0 +1,6 @@
|
||||
<elisp.org>
|
||||
|
||||
<eli
|
||||
sp.org>
|
||||
|
||||
<elisp.org::3>
|
6
org_mode_samples/object/angle_link/id_link.org
Normal file
6
org_mode_samples/object/angle_link/id_link.org
Normal file
@ -0,0 +1,6 @@
|
||||
<id:83986bdf-987c-465d-8851-44cb4c02a86c>
|
||||
|
||||
<id:83986bdf-987c-465d
|
||||
-8851-44cb4c02a86c>
|
||||
|
||||
<id:83986bdf-987c-465d-8851-44cb4c02a86c::foo>
|
20
org_mode_samples/object/angle_link/multiple_slashes.org
Normal file
20
org_mode_samples/object/angle_link/multiple_slashes.org
Normal 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>
|
6
org_mode_samples/object/angle_link/protocol_link.org
Normal file
6
org_mode_samples/object/angle_link/protocol_link.org
Normal file
@ -0,0 +1,6 @@
|
||||
<shell:foo>
|
||||
|
||||
<shell:fo
|
||||
o>
|
||||
|
||||
<shell:foo::3>
|
16
org_mode_samples/object/angle_link/search_option.org
Normal file
16
org_mode_samples/object/angle_link/search_option.org
Normal 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>
|
1
org_mode_samples/object/angle_link/simple.org
Normal file
1
org_mode_samples/object/angle_link/simple.org
Normal file
@ -0,0 +1 @@
|
||||
<https://fizz.buzz/>
|
6
org_mode_samples/object/angle_link/template.org
Normal file
6
org_mode_samples/object/angle_link/template.org
Normal file
@ -0,0 +1,6 @@
|
||||
#+LINK: foo https://foo.bar/baz#%s
|
||||
<foo::lorem>
|
||||
|
||||
<cat::bat>
|
||||
#+LINK: cat dog%s
|
||||
<cat:bat>
|
1
org_mode_samples/object/angle_link/with_parenthesis.org
Normal file
1
org_mode_samples/object/angle_link/with_parenthesis.org
Normal file
@ -0,0 +1 @@
|
||||
<https://en.wikipedia.org/wiki/Shebang_(Unix)>
|
@ -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
|
||||
|
25
org_mode_samples/object/regular_link/all_default_links.org
Normal file
25
org_mode_samples/object/regular_link/all_default_links.org
Normal 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
|
@ -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]]
|
||||
|
Loading…
Reference in New Issue
Block a user