Sergio Martínez Portela
6c6c375572
WIP: Add support for multiline list items.
...
Right now this messes with line numbers.
2022-11-12 12:40:57 +01:00
Sergio Martínez Portela
ccebe90ea8
Fix as_dom of Text found in a result after a list.
2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
bf10c51e61
Indent list-group inside current node if part of a block.
2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
28ddd3e44f
Support get_raw_contents of list groups.
2022-11-04 00:14:41 +01:00
Sergio Martínez Portela
440f0bd4b7
Properly fix parsing of lists inside drawers.
2022-11-01 19:58:17 +01:00
Sergio Martínez Portela
fc9ce664ae
Unify drawer node classes under a common parent.
2022-11-01 19:58:03 +01:00
Sergio Martínez Portela
d1d5de89b7
Revert "Fix parsing of lists inside drawers."
...
This reverts commit 5e4a9f8ff2
.
The tree should not be modified, as it's the returned value. We need an
additional tree for parent-child element connections.
2022-11-01 19:14:14 +01:00
Sergio Martínez Portela
5e4a9f8ff2
Fix parsing of lists inside drawers.
2022-10-31 21:50:18 +01:00
Sergio Martínez Portela
2748f6400b
Make token_list_to_plaintext
skip link's URL.
2022-10-21 20:14:57 +02:00
Sergio Martínez Portela
7beec0be05
Fix link building on text_to_dom.
2022-09-29 23:24:20 +02:00
Sergio Martínez Portela
3dc6213abb
Handle list items where the tag is composed only by the checkbox.
2022-09-29 20:32:26 +02:00
Sergio Martínez Portela
d69bf97163
Require whitespace after list bullet.
2022-09-29 20:25:48 +02:00
Sergio Martínez Portela
28d8b69146
Export table on as_dom
.
2022-09-27 23:55:07 +02:00
Sergio Martínez Portela
c2968283f3
feat: Add base support for tables.
2022-09-27 23:36:32 +02:00
Sergio Martínez Portela
7b7c186b83
feat: Handle greater blocks different from SRC ones.
2022-08-28 21:23:44 +02:00
Sergio Martínez Portela
0e90abbb63
feat: Support markup inside headline titles.
2022-08-28 14:08:54 +02:00
Sergio Martínez Portela
baaa7cbb86
Return None when asked to text_to_dom
None.
...
This should desambiguate the base data semantics.
2022-08-27 13:06:08 +02:00
Sergio Martínez Portela
efadb7814a
Fix handling of links with []
characters around them.
2022-08-27 13:02:10 +02:00
Sergio Martínez Portela
121ad46680
Support text markup on list tags.
2022-08-26 19:04:50 +02:00
Sergio Martínez Portela
2b2af7004a
Fix closing links when converting tokens to DOM.
2022-08-20 15:22:16 +02:00
Sergio Martínez Portela
434fb8ab0e
Support non-recursive dump_headline
.
2022-06-19 21:46:39 +02:00
Sergio Martínez Portela
eb3c789fad
Raise caution errors as NonReproducibleDocument.
2022-06-19 21:46:14 +02:00
Sergio Martínez Portela
6b8b4de21e
Use Optional for types that might be None.
2022-06-05 23:32:32 +02:00
Sergio Martínez Portela
a67bde58d0
Fix repetition on dates with start+end times.
2022-06-05 23:32:28 +02:00
Sergio Martínez Portela
63bb1e67e0
Handle :RESULTS: drawer, and data inside :LOGBOOK:
2022-05-16 23:17:28 +02:00
Sergio Martínez Portela
c87a50f365
Fix handling of Headline hierarchy.
2022-05-16 23:16:20 +02:00
Sergio Martínez Portela
eacbcce376
Avoid false-positives when detecting headlines.
...
A space should be present after the leading '*' to avoid detection
of lines that start with bolded text.
2022-05-15 23:39:35 +02:00
Sergio Martínez Portela
7a9cff57f9
Simplify parsing of CodeBlocks.
2022-05-07 23:33:32 +02:00
Sergio Martínez Portela
afd02f55d4
Improve DOM aggregation of CodeBlocks.
2022-05-07 23:02:18 +02:00
Sergio Martínez Portela
cfce08eed0
Handle OrgDoc's ID.
2022-05-07 12:53:09 +02:00
Sergio Martínez Portela
9b550ed2ea
Handle links on DOM's LinkItem.
2022-05-06 20:18:44 +02:00
Sergio Martínez Portela
9ef2a8ece6
Handle links in dom's text.
2022-05-06 15:54:14 +02:00
Sergio Martínez Portela
3da2ab066c
Add helper to get document from a Headline.
2022-03-28 00:49:32 +02:00
Sergio Martínez Portela
52d8cf59ce
Read raw contents via key names, not positions.
2022-02-14 23:09:43 +01:00
Sergio Martínez Portela
d00937c6eb
When reporting problematic blocks, focus on the relevant lines.
2021-10-24 23:15:22 +02:00
Sergio Martínez Portela
fc166e41a1
Consider SEQ_TODO for TODO keywords.
2021-10-24 23:06:35 +02:00
Sergio Martínez Portela
f79d52a16d
Add support for nested lists on as_dom().
2021-09-04 00:01:21 +02:00
Sergio Martínez Portela
bd31c67eea
Complete initial step of conversion of notes.
2021-08-30 00:09:52 +02:00
Sergio Martínez Portela
fdd532e424
Improve handling of drawers, avoid adding lines not asked for.
2021-08-29 23:54:51 +02:00
Sergio Martínez Portela
c08eb0a7cb
Draft conversion to DOM tree.
2021-08-27 00:22:25 +02:00
Sergio Martínez Portela
bd57dff091
Close PROPERTY drawers when there's no empty lines between headlines.
2021-08-14 17:40:08 +02:00
Sergio Martínez Portela
a164653cd0
Support update of content inside lists.
2021-08-04 00:06:18 +02:00
Sergio Martínez Portela
7e944bcb3d
Add support for markdown and link parsing on lists.
2021-08-03 23:05:15 +02:00
Sergio Martínez Portela
6943ebad7c
Add support for org-roam-v2 style files.
2021-08-03 22:37:03 +02:00
Sergio Martínez Portela
3b6358c195
Add method to get OrgDoc property.
2021-08-03 22:15:38 +02:00
Sergio Martínez Portela
72d5cadb96
Improve NODE_PROPERTIES parsing.
2021-08-03 22:13:41 +02:00
Sergio Martínez Portela
fdc475cb19
Add comparison operations to Timestamp.
2021-04-10 11:13:30 +02:00
Sergio Martínez Portela
af1e5e6f3d
Don't confuse ': plaintext' with :NODE_PROPERTIES: .
2021-04-08 23:50:55 +02:00
Sergio Martínez Portela
e4b3d42319
Improve support for list management.
2021-04-03 00:59:23 +02:00
Sergio Martínez Portela
2d7e7f23ed
Support updating of elements's ID.
2021-04-03 00:59:00 +02:00
Sergio Martínez Portela
fe454bd85e
Draft very basic list parser.
2021-02-10 00:21:37 +01:00
Sergio Martínez Portela
a2c5ad106f
Move readme to root directory.
2021-02-08 00:00:37 +01:00
Sergio Martínez Portela
608cefe02b
Add support for timedelta operation on Timestamp.
2021-02-07 23:59:35 +01:00
Sergio Martínez Portela
88e709f7db
Fix OrgTime and TimeRange duraction getters.
2021-01-18 10:33:34 +01:00
Sergio Martínez Portela
2ca52c339d
Add direct way of retrieving Headline ID .
2021-01-18 10:33:15 +01:00
Sergio Martínez Portela
2bd954e43a
Fix matching of tags with non-unicode chracters.
2021-01-17 18:31:32 +01:00
Sergio Martínez Portela
1412a2bde1
Fix Headline spacing, add default TODO/DONE keywords.
...
Additionally, add util function to iterate over all headlines, and fix
Timestamp.to_datetime() to work even when no time was given.
2021-01-17 13:30:38 +01:00
Sergio Martínez Portela
cde3481958
Support time ranges on PLANNING line.
2021-01-17 13:04:27 +01:00
Sergio Martínez Portela
0e5636d2f5
Add base README.
2021-01-17 12:55:00 +01:00
Sergio Martínez Portela
6476e2a511
Fix support for hour ranges.
2021-01-17 12:40:15 +01:00
Sergio Martínez Portela
1d3b4c187b
Add support for planning info update.
2021-01-12 00:58:28 +01:00
Sergio Martínez Portela
d71f98f4b9
Add support for reading Headline planning info.
...
This includes: `SCHEDULED`, `DEADLINE` and `CLOSED`.
2021-01-06 00:27:27 +01:00
Sergio Martínez Portela
09f2aed8fe
Fix headline dumping after tags and state where separated.
2021-01-05 00:24:33 +01:00
Sergio Martínez Portela
e1f22d360c
Add simple task clock management.
2021-01-05 00:23:18 +01:00
Sergio Martínez Portela
c522afd290
Add a simpler way to query properties.
2020-12-28 14:34:18 +01:00
Sergio Martínez Portela
f1be0c3a72
Add support for headline tags and state.
...
Also, keep track of the origin file of a given OrgDoc.
2020-12-22 10:21:41 +01:00
Sergio Martínez Portela
bb24f9495e
Rename to org-rw.
2020-12-20 13:03:51 +01:00