Commit Graph

65 Commits

Author SHA1 Message Date
Sergio Martínez Portela
93e2001400 Merge remote-tracking branch 'origin/develop' into support-updating-raw-note-contents
All checks were successful
Testing / pytest (push) Successful in 24s
Testing / mypy (push) Successful in 34s
Testing / style-formatting (push) Successful in 28s
Testing / style-sorted-imports (push) Successful in 27s
Testing / stability-extra-test (push) Successful in 28s
2024-10-07 23:26:50 +02:00
Sergio Martínez Portela
691ce30a68 Simplify state setting, update .is_todo/.is_done props.
All checks were successful
Testing / pytest (push) Successful in 28s
Testing / mypy (push) Successful in 35s
Testing / style-formatting (push) Successful in 30s
Testing / style-sorted-imports (push) Successful in 24s
Testing / stability-extra-test (push) Successful in 32s
2024-10-07 23:23:15 +02:00
Sergio Martínez Portela
15af4212ae Apply formatting scripts.
All checks were successful
Testing / pytest (push) Successful in 27s
Testing / mypy (push) Successful in 29s
Testing / style-formatting (push) Successful in 29s
Testing / style-sorted-imports (push) Successful in 23s
Testing / stability-extra-test (push) Successful in 28s
2024-10-07 19:48:16 +02:00
Sergio Martínez Portela
56416f2fd8 Merge remote-tracking branch 'origin/develop' into support-updating-raw-note-contents
Some checks failed
Testing / mypy (push) Waiting to run
Testing / style-formatting (push) Waiting to run
Testing / style-sorted-imports (push) Waiting to run
Testing / stability-extra-test (push) Waiting to run
Testing / pytest (push) Has been cancelled
2024-10-07 19:47:23 +02:00
Sergio Martínez Portela
d4b40e404d Apply autoformatter.
All checks were successful
Testing / pytest (push) Successful in 28s
Testing / mypy (push) Successful in 37s
Testing / style-formatting (push) Successful in 33s
Testing / style-sorted-imports (push) Successful in 25s
Testing / stability-extra-test (push) Successful in 30s
2024-10-05 10:08:41 +02:00
Sergio Martínez Portela
5432c23202 Explicitly extract code block language.
Some checks failed
Testing / pytest (push) Successful in 26s
Testing / mypy (push) Successful in 35s
Testing / style-formatting (push) Failing after 30s
Testing / style-sorted-imports (push) Successful in 35s
Testing / stability-extra-test (push) Successful in 28s
2024-09-30 23:55:07 +02:00
Sergio Martínez Portela
8fe3c27595 Read names for code blocks. 2024-09-30 23:39:37 +02:00
Sergio Martínez Portela
78bc57e55d Fix formatting.
All checks were successful
Testing / pytest (push) Successful in 27s
Testing / mypy (push) Successful in 30s
Testing / style-formatting (push) Successful in 28s
Testing / style-sorted-imports (push) Successful in 22s
Testing / stability-extra-test (push) Successful in 36s
2024-09-01 23:51:38 +02:00
Sergio Martínez Portela
d4b0d0301f Test and implement org-use-tag-inheritance.
Some checks failed
Testing / pytest (push) Has been cancelled
Testing / mypy (push) Has been cancelled
Testing / style-formatting (push) Has been cancelled
Testing / style-sorted-imports (push) Has been cancelled
Testing / stability-extra-test (push) Has been cancelled
2024-09-01 23:51:10 +02:00
Sergio Martínez Portela
92078617fc Add tests and implement org-tags-exclude-from-inheritance.
Some checks failed
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Successful in 31s
Testing / style-formatting (push) Failing after 31s
Testing / style-sorted-imports (push) Successful in 30s
Testing / stability-extra-test (push) Successful in 27s
2024-09-01 23:46:10 +02:00
Sergio Martínez Portela
852f472374 Implement OrgDoc .shallow_tags .
Some checks failed
Testing / pytest (push) Successful in 27s
Testing / mypy (push) Successful in 32s
Testing / style-formatting (push) Failing after 42s
Testing / style-sorted-imports (push) Successful in 28s
Testing / stability-extra-test (push) Successful in 28s
2024-09-01 23:37:26 +02:00
Sergio Martínez Portela
e0306bf3a5 Add (failing) test for tags property read.
Some checks failed
Testing / pytest (push) Failing after 26s
Testing / mypy (push) Successful in 37s
Testing / style-formatting (push) Failing after 31s
Testing / style-sorted-imports (push) Successful in 25s
Testing / stability-extra-test (push) Has been cancelled
2024-09-01 23:35:23 +02:00
Sergio Martínez Portela
e991074346 fix: Apply import sorting.
All checks were successful
Testing / pytest (push) Successful in 30s
Testing / mypy (push) Successful in 34s
Testing / style-formatting (push) Successful in 29s
Testing / style-sorted-imports (push) Successful in 26s
Testing / stability-extra-test (push) Successful in 32s
2024-08-18 22:49:33 +02:00
Sergio Martínez Portela
8ca480ad77 fix: Apply black formatter. 2024-08-18 22:47:24 +02:00
Sergio Martínez Portela
c7f78e0a6c Add reparse test line ordering of reparsing.
Some checks failed
Testing / pytest (push) Failing after 27s
Testing / mypy (push) Successful in 1m6s
Testing / stability-extra-test (push) Successful in 1m6s
2024-07-30 17:15:29 +02:00
Sergio Martínez Portela
ef615feac5 Allow trailing whitespace changes on raw content update.
All checks were successful
Testing / pytest (push) Successful in 28s
Testing / mypy (push) Successful in 31s
Testing / stability-extra-test (push) Successful in 31s
2024-07-30 10:52:37 +02:00
Sergio Martínez Portela
5de339570d Add (failing) test for reparse on headline update. 2024-07-30 10:52:29 +02:00
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