Relative paths are file links, absolute paths are fuzzy.
This commit is contained in:
parent
ab33730830
commit
aa0a0b890e
@ -1,3 +1,6 @@
|
||||
[[./simple.org]]
|
||||
[[../simple.org]]
|
||||
[[/simple.org]]
|
||||
[[file:simple.org]]
|
||||
[[file:sim ple.org]]
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
[[elisp.org]]
|
||||
[[/elisp.org]]
|
||||
|
||||
[[eli
|
||||
sp.org]]
|
||||
|
@ -233,7 +233,7 @@ fn apply_link_templates<'b, 'g, 'r, 's>(
|
||||
|
||||
fn file_path_reg<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, PathReg<'s>> {
|
||||
let (remaining, (raw_link, (_, path, search_option))) = consumed(tuple((
|
||||
tag("file:"),
|
||||
alt((tag("file:"), peek(tag(".")))),
|
||||
recognize(many_till(anychar, alt((peek(tag("::")), eof)))),
|
||||
opt(map(tuple((tag("::"), rest)), |(_, search_option)| {
|
||||
search_option
|
||||
|
Loading…
Reference in New Issue
Block a user