Commit Graph

48 Commits

Author SHA1 Message Date
Sergio Martínez Portela
7e44bce145 Merge remote-tracking branch 'origin/develop' into feat/add-todo-keywords-programmatically
Some checks failed
Testing / pytest (push) Successful in 26s
Testing / mypy (push) Failing after 30s
Testing / stability-extra-test (push) Successful in 23s
2024-07-29 15:19:58 +01:00
Lyz
191bb753c4
tests: fix repetition string 2024-07-26 13:34:38 +02:00
Sergio Martínez Portela
4c169f5d47 Add (passing) test to read TODO/DONE states from file. 2024-07-20 14:42:20 +02:00
Sergio Martínez Portela
f4d63c2f93 Add (failing) test. 2024-07-20 14:41:09 +02:00
Lyz
be68d10d7a
feat: initialise a Timestamp from a datetime object 2024-07-20 11:38:19 +02:00
Lyz
c5cc14f65c
feat(Timestamp): add the from_datetime method
To update the current Timestamp instance based on a datetime or date object.

I've also included a set_datetime method to OrgTime

feat: add activate and deactivate methods to TimeRange and OrgTime

I need it in a program I'm making
refactor: Create the Time type hint

I had to move the parse_time and parse_org_time_range below OrgTime
because it used the Time type hint and the Time type hint needed the
other two

style: reformat the code following black

style: Add some type hints and docstrings

style: remove unused imports

tests: Correct some mypy errors
2024-07-19 21:36:00 +02:00
Sergio Martínez Portela
985098e091 Find web links not marked as such when returning doc.get_links().
Some checks failed
Testing / pytest (push) Successful in 36s
Testing / mypy (push) Failing after 42s
Testing / stability-extra-test (push) Successful in 26s
2024-02-04 00:18:31 +01:00
Sergio Martínez Portela
9d87d533f4 Add (failing) test 2023-10-16 23:32:18 +02:00
Sergio Martínez Portela
cebe979066 Fix typo on lists test file. 2023-05-01 20:40:15 +02:00
Sergio Martínez Portela
36a0a00113 Fix nested lists DOM generation and add tests. 2023-05-01 20:40:02 +02:00
Sergio Martínez Portela
302689a622 Fix dom generated of table nested into list. 2023-04-23 20:50:06 +02:00
Sergio Martínez Portela
8832cd0b3d Fix extraction of block element contents.
Don't confound normal characters with formatting markers. Handle escaping of
    otherwise headline starters with a comma.
2022-11-17 00:20:20 +01:00
Sergio Martínez Portela
66d061dfda Expose #+BEGIN_ block arguments. 2022-11-15 21:11:05 +01:00
Sergio Martínez Portela
b819904457 Fix handling of block elements after multiline list items. 2022-11-12 18:01:19 +01:00
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
d69bf97163 Require whitespace after list bullet. 2022-09-29 20:25:48 +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
0e90abbb63 feat: Support markup inside headline titles. 2022-08-28 14:08:54 +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
bd4e4f8cb4 Add (failing) tests for confusing links (close to []). 2022-08-27 13:02:01 +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
79fd20a472 Add link test with more trailing text. 2022-08-20 15:07:19 +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
bd57dff091 Close PROPERTY drawers when there's no empty lines between headlines. 2021-08-14 17:40:08 +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
e4b3d42319 Improve support for list management. 2021-04-03 00:59:23 +02:00
Sergio Martínez Portela
fe454bd85e Draft very basic list parser. 2021-02-10 00:21:37 +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
bb24f9495e Rename to org-rw. 2020-12-20 13:03:51 +01:00
Sergio Martínez Portela
83710a4fc1 Support updating ranges with contents with different size. 2020-12-20 12:14:58 +01:00
Sergio Martínez Portela
d6133a1e9b Add test to check that links can be updated. [skip ci] 2020-12-12 00:57:28 +01:00
Sergio Martínez Portela
b2779dbc41 Improve Timestamp and TimeRange handling. 2020-12-10 00:12:13 +01:00
Sergio Martínez Portela
7f67c768c6 Fix Headlines with properties but no content lines. 2020-12-09 23:58:26 +01:00
Sergio Martínez Portela
ffe6f007fc Add basic BEGIN_SRC block support. 2020-12-06 00:26:44 +01:00
Sergio Martínez Portela
a5bfeadfeb (In progress) Add support for SRC code blocks.
- Add tests for blocks.
- Add Regexps.
- Correctly handle Headlines with split contents.
2020-12-04 00:04:56 +01:00
Sergio Martínez Portela
1d71d1a3c3 Apply autoformatting with black. 2020-11-26 23:44:56 +01:00
Sergio Martínez Portela
46a2c387eb Avoid adding an empty line when headline has none. 2020-11-26 23:42:04 +01:00
Sergio Martínez Portela
f08d9428d6 Add test for headlines with no content lines. 2020-11-07 00:24:28 +01:00
Sergio Martínez Portela
2372fc597c Add base link parsing. 2020-11-02 23:51:19 +01:00
Sergio Martínez Portela
e73ce5d480 Format with black, use tokens for markup segmentation.
- Don't use trees in first instance as interleaving might be lossy.
2020-11-02 20:39:52 +01:00
Sergio Martínez Portela
f6de69fd90 Add simple support for nested markup. 2020-10-25 20:23:08 +01:00
Sergio Martínez Portela
5b886e5e24 Pass markup tests. 2020-10-10 00:39:32 +02:00
Sergio Martínez Portela
0dab7e4703 Add base support for markup tests. 2020-06-27 19:20:34 +02:00
Sergio Martínez Portela
d23ee1adba Add base dumping/serialization mechanism. 2020-06-22 00:40:47 +02:00
Sergio Martínez Portela
d29058cb5e Initial commit, simplistic parsing. 2020-06-21 22:48:47 +02:00