Sergio Martínez Portela
c5845d670f
Avoid line offset correction, as it's tricky to do it correctly.
...
Testing / pytest (push) Successful in 26s
Testing / mypy (push) Successful in 1m6s
Testing / stability-extra-test (push) Successful in 31s
Note that we might want to restore the offset correction at some point to allow looking at the line positions after the
load is completed.
2024-07-30 17:35:28 +02:00
Sergio Martínez Portela
c7f78e0a6c
Add reparse test line ordering of reparsing.
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.
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
d0498d2f5b
Add support for data parse on headline content update.
2024-07-30 10:52:29 +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
071004ea7a
Quick fix for handling date data.
Testing / pytest (push) Successful in 24s
Testing / mypy (push) Successful in 33s
Testing / stability-extra-test (push) Successful in 24s
2024-07-29 15:36:57 +01:00
Sergio Martínez Portela
f5cafa9c62
Merge remote-tracking branch 'origin/develop' into support-updating-raw-note-contents
2024-07-29 15:35:20 +01:00
40d58d5488
Merge pull request 'Add TODO keywords programmatically' ( #2 ) from feat/add-todo-keywords-programmatically into develop
...
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Successful in 32s
Testing / stability-extra-test (push) Successful in 24s
Reviewed-on: #2
Reviewed-by: lyz <lyz@riseup.net>
2024-07-29 14:34:18 +00:00
Sergio Martínez Portela
09f9030818
tests: fix typings to match mypy expectations.
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Successful in 31s
Testing / stability-extra-test (push) Successful in 21s
2024-07-29 15:31:39 +01:00
Sergio Martínez Portela
7e44bce145
Merge remote-tracking branch 'origin/develop' into feat/add-todo-keywords-programmatically
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
ef893a72a0
Merge pull request 'feat/improvements' ( #1 ) from lyz/org-rw:feat/improvements into develop
...
Testing / pytest (push) Successful in 30s
Testing / mypy (push) Failing after 34s
Testing / stability-extra-test (push) Successful in 27s
Reviewed-on: #1
Reviewed-by: kenkeiras <kenkeiras@codigoparallevar.com>
2024-07-29 14:17:16 +00:00
9fea315115
merge upstream
2024-07-26 13:36:04 +02:00
191bb753c4
tests: fix repetition string
2024-07-26 13:34:38 +02:00
Sergio Martínez Portela
134d872ca6
wip: First approach to get going.
Testing / pytest (push) Successful in 27s
Testing / mypy (push) Failing after 32s
Testing / stability-extra-test (push) Successful in 22s
2024-07-22 23:31:19 +01:00
Sergio Martínez Portela
b174405c90
Refactor headline state parsing.
...
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Failing after 33s
Testing / stability-extra-test (push) Successful in 22s
- Add separate function to parse states.
- Handle edge case when no `|` is used to split TODO and DONE states.
- Add typing to the states to future-proof for handling keyboard shortcuts and actions on state changes.
2024-07-20 18:10:05 +02:00
cca2a9ec1c
Merge branch 'develop' into feat/improvements
2024-07-20 15:53:55 +00:00
Sergio Martínez Portela
da2d8c8c6d
Add org-todo-keywords
environment to programatically set states.
Testing / pytest (push) Successful in 41s
Testing / mypy (push) Failing after 32s
Testing / stability-extra-test (push) Successful in 25s
2024-07-20 14:42:41 +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
ff841f82f0
feat: Set the default Timestamp active to True
...
That way you don't need to specify it if you don't want
2024-07-20 11:41:15 +02:00
be68d10d7a
feat: initialise a Timestamp from a datetime object
2024-07-20 11:38:19 +02:00
f640521b56
feat: add the scheduled, deadline and closed arguments to Headline init
...
style: Improve the type hints of Time
When reading them it's more natural to read Optional[Time] than to
assume that None is part of the Union in Time
2024-07-20 11:14:15 +02:00
694f3f59e2
Merge branch 'develop' into feat/improvements
2024-07-20 10:49:06 +02:00
921495fca8
Merge branch 'develop' of ssh://code.codigoparallevar.com:2022/lyz/org-rw into develop
2024-07-20 10:48:19 +02:00
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
a56ac018a8
Prepare for PyPI pushising, bumb version.
Testing / pytest (push) Successful in 25s
Testing / mypy (push) Failing after 30s
Testing / stability-extra-test (push) Successful in 22s
2024-07-19 20:01:27 +02:00
Sergio Martínez Portela
423d6f9842
Fix multiline specifications of TODO properties.
Testing / pytest (push) Successful in 41s
Testing / mypy (push) Failing after 37s
Testing / stability-extra-test (push) Successful in 28s
2024-03-22 01:54:46 +01:00
Sergio Martínez Portela
9e994ba323
Accept numbers as end of implicit link.
Testing / pytest (push) Successful in 38s
Testing / mypy (push) Failing after 37s
Testing / stability-extra-test (push) Successful in 26s
2024-02-21 23:01:10 +01:00
Sergio Martínez Portela
4fd29819ea
Fix implicit link parsing.
Testing / pytest (push) Successful in 1m34s
Testing / mypy (push) Failing after 30s
Testing / stability-extra-test (push) Successful in 24s
2024-02-21 23:00:59 +01:00
Sergio Martínez Portela
985098e091
Find web links not marked as such when returning doc.get_links()
.
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
feb836b2b6
Merge branch 'fix/handle-headlines-with-skip-levels' into develop
Testing / pytest (push) Has been cancelled
Testing / mypy (push) Has been cancelled
Testing / stability-extra-test (push) Has been cancelled
2023-10-16 23:39:30 +02:00
Sergio Martínez Portela
e26a2f04ac
Fix typing of headline_hierarchy
, remove incorrect assertion.
2023-10-16 23:38:54 +02:00
Sergio Martínez Portela
9d87d533f4
Add (failing) test
2023-10-16 23:32:18 +02:00
Sergio Martínez Portela
e4821f02cd
Fix: run checks on the updated headline_hierarchy.
Testing / pytest (push) Has been cancelled
Testing / mypy (push) Has been cancelled
Testing / stability-extra-test (push) Has been cancelled
2023-10-16 23:16:41 +02:00
Sergio Martínez Portela
1f54307fdb
Merge branch 'dev/add-types' into develop
Testing / pytest (push) Successful in 29s
Testing / mypy (push) Successful in 33s
Testing / stability-extra-test (push) Successful in 29s
2023-10-16 00:24:51 +02:00
Sergio Martínez Portela
1d0b4cce14
Complete typing with mypy --check-untyped-defs
.
Testing / pytest (push) Successful in 29s
Testing / mypy (push) Successful in 35s
Testing / stability-extra-test (push) Successful in 27s
2023-10-16 00:21:30 +02:00
Sergio Martínez Portela
9fb4bce5ef
Add extra-test validation.
Testing / pytest (push) Successful in 32s
Testing / mypy (push) Successful in 36s
Testing / stability-extra-test (push) Successful in 28s
2023-10-15 23:45:43 +02:00
Sergio Martínez Portela
61246da521
Merge MyPy and Pytest Gitea actions.
Testing / pytest (push) Successful in 32s
Testing / mypy (push) Successful in 42s
2023-10-15 23:37:45 +02:00
Sergio Martínez Portela
da1288a6ba
Add MyPy Gitea action.
Mypy / mypy (push) Successful in 42s
Pytest / pytest (push) Successful in 31s
2023-10-15 23:36:43 +02:00
Sergio Martínez Portela
f7ddddb8c9
Add PyTest Gitea action.
Pytest / pytest (push) Successful in 32s
2023-10-15 23:32:32 +02:00
Sergio Martínez Portela
343d864559
Fix handling of headline title-tags separated by tabs.
2023-10-15 16:39:00 +02:00
Sergio Martínez Portela
5ed34df57a
Make typed functions pass mypy
check.
2023-10-15 16:34:33 +02:00
Sergio Martínez Portela
99e44fd8b2
Merge branch 'dev/render-as-dom' into develop
2023-10-07 13:14:51 +02:00
Sergio Martínez Portela
2749a5caad
Implement Headline.add_tag()/.create_headline_at_end().
2023-10-07 13:14:13 +02:00
Sergio Martínez Portela
f11ecd05d6
Fix: find links in list tags.
2023-07-30 23:16:04 +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
790ef57598
Add extra check for TimeRange validity.
2023-04-23 20:50:06 +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
7008124509
Use more robust list de-indentation handler.
2023-04-13 23:56:58 +02:00