Commit Graph

229 Commits

Author SHA1 Message Date
Tom Alexander 592e773920
Add tests for plain link search options and relative paths. 2023-10-07 01:44:31 -04:00
Tom Alexander be553aefb1
Add test showing plain links cannot be templates. 2023-10-07 01:44:31 -04:00
Tom Alexander 56348a6d54
Actually absolute paths are files too.
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has succeeded Details
2023-10-07 00:15:37 -04:00
Tom Alexander 65e142a215
Link templates support single-colons and inject the value at the end if no %s is found. 2023-10-06 23:55:21 -04:00
Tom Alexander aa0a0b890e
Relative paths are file links, absolute paths are fuzzy. 2023-10-06 23:48:55 -04:00
Tom Alexander ab33730830
Search option also supports regex.
rust-build Build rust-build has succeeded Details
rust-test Build rust-test has succeeded Details
rust-foreign-document-test Build rust-foreign-document-test has failed Details
As seen on the list of possible search options at https://orgmode.org/manual/Search-Options.html.
2023-10-06 23:33:09 -04:00
Tom Alexander 4c8828b91b
Apply the link templates. 2023-10-06 23:33:09 -04:00
Tom Alexander ae3a6ff919
Turns out links can have templates. 2023-10-06 20:23:19 -04:00
Tom Alexander 7cf1f7b7bb
Only orgify the link text if there are line breaks present. 2023-10-06 19:05:56 -04:00
Tom Alexander 135ca133ea
Add tests for search option. 2023-10-06 18:56:11 -04:00
Tom Alexander d126488891
Handle orgifying text in regular link path and raw-link. 2023-10-06 18:30:08 -04:00
Tom Alexander e84135985e
Parse out the pathreg on regular links. 2023-10-06 17:21:43 -04:00
Tom Alexander 448902bb05
Add regular link tests for all the types. 2023-10-06 16:52:45 -04:00
Tom Alexander efac73798f
Add a test showing we need to count brackets. 2023-10-05 18:44:57 -04:00
Tom Alexander 68e392811e
Parse the babel call. 2023-10-05 18:44:56 -04:00
Tom Alexander b478b6f5d7
Compare value, duration, and status. 2023-10-05 03:40:29 -04:00
Tom Alexander 40685f05cc
Add a test for multiple names on a single element. 2023-10-05 02:28:24 -04:00
Tom Alexander 1da521b08a
Compare value for export block. 2023-10-05 02:06:26 -04:00
Tom Alexander 386ad5091d
End switches at the first unrecognized word in src blocks. 2023-10-05 01:55:33 -04:00
Tom Alexander 5f84cd974d
Add test showing the first unrecognized word is the end of the switches for src blocks. 2023-10-05 01:10:50 -04:00
Tom Alexander 50a3631b79
Handle whitespace after parameters in src blocks. 2023-10-05 00:43:03 -04:00
Tom Alexander da2d7535e8
Add synonyms for name. 2023-10-05 00:30:33 -04:00
Tom Alexander 93fe46e4e7
Populate the name field on elements. 2023-10-04 21:27:55 -04:00
Tom Alexander 5b308ea76f
Implement a function to read the name from the affiliated keywords. 2023-10-04 21:12:06 -04:00
Tom Alexander d8102b7bc2
Move the affiliated keywords parser inside the specific element parsers.
We need access to the affiliated keywords to do things like set the name of the element, and only half the element parsers are allowed to have affiliated keywords, so it makes sense to move it inside the specific parsers.
2023-10-04 20:55:48 -04:00
Tom Alexander a26640355c
Add check for name on paragraph. 2023-10-04 19:58:09 -04:00
Tom Alexander 4fc81e983a
Add tests for names for lesser blocks. 2023-10-04 19:39:50 -04:00
Tom Alexander 258e9485de
Add tests for names and references in src and example blocks. 2023-10-04 19:34:10 -04:00
Tom Alexander e1e4ac75e4
Add a test for preserve indent. 2023-10-04 19:05:28 -04:00
Tom Alexander 1ab7d2f2d7
Add a test showing we are not handling exports flags properly. 2023-10-04 17:32:51 -04:00
Tom Alexander 13163f2468
Retain labels stays a boolean without -r. 2023-10-04 16:37:15 -04:00
Tom Alexander da5dcd4c1b
Support multiple commas when escaping lines. 2023-10-04 16:03:45 -04:00
Tom Alexander 301a6db83e
Fix retain labels.
This is a numeric value based on the character offset of -k from the beginning of the switches.
2023-10-04 15:21:27 -04:00
Tom Alexander 32da06776c
Handle matching no switches. 2023-10-04 15:21:27 -04:00
Tom Alexander afb43ff34f
Switch to getting the contents with a function to handle the escaped lines. 2023-10-04 15:21:27 -04:00
Tom Alexander b56d847cfa
Compare label format, retain labels, and use labels. 2023-10-04 15:21:27 -04:00
Tom Alexander 1503054994
Make an argument for the line number switch optional. 2023-10-04 11:46:02 -04:00
Tom Alexander 317293f0f2
Extract the line number from the switches. 2023-10-04 11:31:45 -04:00
Tom Alexander 1d7770e590
Rename data to switches in example and src block. 2023-10-04 09:59:11 -04:00
Tom Alexander bf038db31c
Add test showing trailing whitespace is captured in the switches. 2023-10-04 09:53:33 -04:00
Tom Alexander 4cdf88a632
Switches are not stored for comment blocks, but they are allowed to appear. 2023-10-04 09:51:28 -04:00
Tom Alexander 2eaef82fdb
Organize lesser block tests into subfolders. 2023-10-04 09:46:09 -04:00
Tom Alexander 00dc7b636c
Add more tests. 2023-10-04 09:42:36 -04:00
Tom Alexander 8169499de3
Compare value. 2023-10-02 23:28:32 -04:00
Tom Alexander 36217f5704
Do not capture trailing whitespace in parameters. 2023-10-02 21:14:07 -04:00
Tom Alexander 01c2f1bf66
Add a test for a timestamp with a malformed repeater. 2023-10-02 20:04:39 -04:00
Tom Alexander 5c929ffc13
Fix repeater type.
I had Cumulative and CatchUp backwards.
2023-10-02 19:18:25 -04:00
Tom Alexander 512432c5f0
Do not allow time range timestamps with REST on the first TIME. 2023-10-02 17:51:33 -04:00
Tom Alexander 5a254392cb
Add more tests. 2023-10-02 10:53:52 -04:00
Tom Alexander 178894680b
Compare footnote section. 2023-10-02 10:48:34 -04:00