Commit Graph

184 Commits

Author SHA1 Message Date
Sergio Martínez Portela
3193ecbc36 fix: Creation of new headlines. 2025-04-16 00:41:27 +02:00
Sergio Martínez Portela
14e344981b format: Apply black formatter. 2025-04-16 00:39:08 +02:00
Sergio Martínez Portela
527a9e7eb2 feat: Keep headline whitespaces info & remove them from title text. 2025-04-16 00:37:38 +02:00
Sergio Martínez Portela
9c54f83ec7 revert: Remove old implementation change.
This is reverted as it doesn't return accurately the information that's on the org-mode file.
2025-04-16 00:06:13 +02:00
Sergio Martínez Portela
123f5c9115 test: Propose tests for title parsing changes. 2025-04-16 00:05:24 +02:00
ae1aa7bf9c Merge branch 'develop' into fix/strip-title
All checks were successful
Testing / pytest (push) Successful in 19s
Testing / mypy (push) Successful in 26s
Testing / style-formatting (push) Successful in 18s
Testing / style-sorted-imports (push) Successful in 18s
Testing / stability-extra-test (push) Successful in 21s
2025-04-15 21:57:53 +00:00
78bd091e61 Merge pull request 'Multiple fixes on loader due to extended tests.' (#15) from fixes/loading into develop
Reviewed-on: kenkeiras/org-rw#15
2025-04-15 21:56:51 +00:00
Sergio Martínez Portela
3b90723250 format: Automatic formatting fixes. 2025-02-09 16:50:52 +01:00
Sergio Martínez Portela
506a17dc5c fix(org_rw): Ensure closing delimiters are same subtype as openers. 2025-02-09 16:50:52 +01:00
Sergio Martínez Portela
0bdb29a278 Don't cut delimiter lines out of get_lines_between(). 2025-02-09 16:50:52 +01:00
Sergio Martínez Portela
8b4e12ea2e Add dom.TableRow.get_raw() support. 2025-02-09 16:50:52 +01:00
Sergio Martínez Portela
dbac8b2d6e feat(dom): Add support for generic drawer outputs. 2025-02-09 16:50:52 +01:00
Sergio Martínez Portela
c0fc78fe33 fix(gitea): Fix build with newer images. 2025-02-09 14:13:28 +01:00
Sergio Martínez Portela
9c04717a12 Fix support of code blocks outside headlines. 2025-02-09 13:49:09 +01:00
Lyz
6710775882
fix: strip token_list_to_plaintext
Some checks failed
Testing / pytest (push) Failing after 4s
Testing / mypy (push) Failing after 4s
Testing / style-formatting (push) Failing after 4s
Testing / style-sorted-imports (push) Failing after 3s
Testing / stability-extra-test (push) Failing after 4s
otherwise when you do headline.title.get_text() you may have trailing
whitespaces
2025-01-25 14:22:23 +01:00
8280949f23 Merge pull request 'feat: Simplify headline state setting.' (#12) from feat/cleaner-state-setting into develop
Reviewed-on: kenkeiras/org-rw#12
2024-10-07 21:26:19 +00:00
Sergio Martínez Portela
691ce30a68 Simplify state setting, update .is_todo/.is_done props. 2024-10-07 23:23:15 +02:00
48de06abc7 Merge pull request 'feat: Name code snippets' (#11) from feat/named-code-snippets into develop
Reviewed-on: kenkeiras/org-rw#11
2024-10-06 22:26:00 +00:00
Sergio Martínez Portela
d4b40e404d Apply autoformatter. 2024-10-05 10:08:41 +02:00
Sergio Martínez Portela
5432c23202 Explicitly extract code block language. 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
1dc6eb0b43 fix: On OrgDoc.get_code_snippets, consider headlines of all levels. 2024-09-30 22:59:04 +02:00
5019b44dd5 Merge pull request 'Feat: Complete tags property' (#10) from feat/consider-file-tags-on-headlines into develop
Reviewed-on: kenkeiras/org-rw#10
2024-09-03 18:33:03 +00:00
Sergio Martínez Portela
78bc57e55d Fix formatting. 2024-09-01 23:51:38 +02:00
Sergio Martínez Portela
d4b0d0301f Test and implement org-use-tag-inheritance. 2024-09-01 23:51:10 +02:00
Sergio Martínez Portela
92078617fc Add tests and implement org-tags-exclude-from-inheritance. 2024-09-01 23:46:10 +02:00
Sergio Martínez Portela
852f472374 Implement OrgDoc .shallow_tags . 2024-09-01 23:37:26 +02:00
Sergio Martínez Portela
570e6bb764 Implement OrgDoc .tags. 2024-09-01 23:35:33 +02:00
Sergio Martínez Portela
e0306bf3a5 Add (failing) test for tags property read. 2024-09-01 23:35:23 +02:00
bfe60271eb Merge pull request 'Fix text parsing issues' (#9) from fix/require-whitespace-for-list-item-tag-separator into develop
Reviewed-on: kenkeiras/org-rw#9
2024-09-01 12:10:25 +00:00
Sergio Martínez Portela
4af4cda44b Fix formatting. 2024-08-22 00:26:11 +02:00
Sergio Martínez Portela
5552b3324b Handle ] which not close link descriptions or references. 2024-08-22 00:21:02 +02:00
Sergio Martínez Portela
f31c64c242 Properly track which tokens are used for closing formats. 2024-08-22 00:20:54 +02:00
Sergio Martínez Portela
490b36887a Require space before list item tag separator. 2024-08-22 00:20:15 +02:00
05718e1001 Merge pull request 'feat: Apply and check autoformatting' (#8) from apply-and-check-autoformatting into develop
Reviewed-on: kenkeiras/org-rw#8
2024-08-19 21:41:32 +00:00
Sergio Martínez Portela
e991074346 fix: Apply import sorting. 2024-08-18 22:49:33 +02:00
Sergio Martínez Portela
66b42e0b96 feat: Add script to apply formatting tools. 2024-08-18 22:49:06 +02:00
Sergio Martínez Portela
c6d8575ae5 test: Test sorted imports. 2024-08-18 22:47:42 +02:00
Sergio Martínez Portela
8ca480ad77 fix: Apply black formatter. 2024-08-18 22:47:24 +02:00
Sergio Martínez Portela
0a55c64551 test: Add formatting check to CI/CD. 2024-08-18 22:47:24 +02:00
991781a249 Merge pull request 'feat: enhance type annotations and formatting' (#7) from lyz/org-rw:feat/small-improvements into develop
Reviewed-on: kenkeiras/org-rw#7
Reviewed-by: kenkeiras <kenkeiras@codigoparallevar.com>
2024-08-18 20:16:16 +00:00
Lyz
75055f5e08
feat: enhance type annotations and formatting
All checks were successful
Testing / pytest (push) Successful in 27s
Testing / mypy (push) Successful in 34s
Testing / stability-extra-test (push) Successful in 28s
feat: Added `py.typed` file to indicate the presence of type information in the package.

Mypy needs this
2024-08-02 20:08:04 +02:00
40d58d5488 Merge pull request 'Add TODO keywords programmatically' (#2) from feat/add-todo-keywords-programmatically into develop
All checks were successful
Testing / pytest (push) Successful in 33s
Testing / mypy (push) Successful in 44s
Testing / stability-extra-test (push) Successful in 34s
Reviewed-on: kenkeiras/org-rw#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. 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 2024-07-29 15:19:58 +01:00
ef893a72a0 Merge pull request 'feat/improvements' (#1) from lyz/org-rw:feat/improvements into develop
Reviewed-on: kenkeiras/org-rw#1
Reviewed-by: kenkeiras <kenkeiras@codigoparallevar.com>
2024-07-29 14:17:16 +00:00
Lyz
9fea315115
merge upstream 2024-07-26 13:36:04 +02:00
Lyz
191bb753c4
tests: fix repetition string 2024-07-26 13:34:38 +02:00
Sergio Martínez Portela
b174405c90 Refactor headline state parsing.
- 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