Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(block.ts): insert SCHEDULED string as the second line in a block #306

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

e-zz
Copy link
Contributor

@e-zz e-zz commented Apr 7, 2024

This PR resolves the issue where the date-time string is appended to the end of a block even when the block has more than one line. For instance: after arraning the following task in the calendar view (either by drag-and-drop or by manual input)

- TODO test
  $test$

the SCHEDULED string will be added to the very end

- TODO test
  $test$
  SCHEDULED: <2024-04-07 Sun>    <!--  can't be parsed by Logseq -->

The correct method is to place the string on the second line rather than at the end to ensure it is parsed correctly. Here is the result after applying the fix.

- TODO test
  SCHEDULED: <2024-04-07 Sun>
  $test$

Copy link

vercel bot commented Apr 7, 2024

Someone is attempting to deploy a commit to the Hayden's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Owner

@haydenull haydenull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@haydenull haydenull merged commit 9ede498 into haydenull:main Apr 8, 2024
1 check failed
github-actions bot pushed a commit that referenced this pull request Apr 8, 2024
## [3.10.3](v3.10.2...v3.10.3) (2024-04-08)

### Bug Fixes

* **block.ts:** insert scheduled error when block has multiple lines ([#306](#306)) ([9ede498](9ede498))
Copy link
Contributor

github-actions bot commented Apr 8, 2024

🎉 This PR is included in version 3.10.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to e-zz/logseq-plugin-agenda that referenced this pull request Apr 8, 2024
# [3.10.0](v3.9.2...v3.10.0) (2024-04-08)

### Bug Fixes

* 🐛 aoto siwtch theme when logseq's theme changed ([haydenull#301](https://github.com/e-zz/logseq-plugin-agenda/issues/301)) ([e9fcb8d](e9fcb8d))
* **block.ts:** insert scheduled error when block has multiple lines ([haydenull#306](https://github.com/e-zz/logseq-plugin-agenda/issues/306)) ([9ede498](9ede498))
* invalid duration string `DURATION:PT` ([haydenull#294](https://github.com/e-zz/logseq-plugin-agenda/issues/294)) ([70a780b](70a780b))

### Features

* ✨ add dark theme ([haydenull#300](https://github.com/e-zz/logseq-plugin-agenda/issues/300)) ([fa8fd6c](fa8fd6c))
* shortcuts ([7a09812](7a09812))
* start of week ([c213283](c213283))
github-actions bot pushed a commit to e-zz/logseq-plugin-agenda that referenced this pull request Jul 22, 2024
# [3.10.0](v3.9.2...v3.10.0) (2024-07-22)

### Bug Fixes

* 🐛 added toast for empty task name ([e16817b](e16817b))
* 🐛 aoto siwtch theme when logseq's theme changed ([haydenull#301](https://github.com/e-zz/logseq-plugin-agenda/issues/301)) ([e9fcb8d](e9fcb8d))
* 🐛 nOW task transfer to TODO task ([d74454c](d74454c)), closes [haydenull#262](https://github.com/e-zz/logseq-plugin-agenda/issues/262)
* 🐛 update task status after switch status in task modal ([952c880](952c880)), closes [haydenull#284](https://github.com/e-zz/logseq-plugin-agenda/issues/284)
* `navToLogseqBlock` fails for long pages ([290970d](290970d))
* **agenda2:** 🐛 parse todoist id error ([ee1d301](ee1d301))
* **agenda2:** 🐛 prevent the sync todoist button from being clicked repeatedly ([haydenull#315](https://github.com/e-zz/logseq-plugin-agenda/issues/315)) ([3183201](3183201)), closes [haydenull#312](https://github.com/e-zz/logseq-plugin-agenda/issues/312)
* **block.ts:** insert scheduled error when block has multiple lines ([haydenull#306](https://github.com/e-zz/logseq-plugin-agenda/issues/306)) ([9ede498](9ede498))
* **calendar:** 🐛 show deadline in week view ([6a43384](6a43384))
* **calendar:** 🐛 timed event from previous day causes incorrect +more count in calendar ([4ba6942](4ba6942)), closes [haydenull#316](https://github.com/e-zz/logseq-plugin-agenda/issues/316)
* invalid duration string `DURATION:PT` ([haydenull#294](https://github.com/e-zz/logseq-plugin-agenda/issues/294)) ([70a780b](70a780b))
* **kanban:** 🐛 some tasks are hidden in kanban ([haydenull#314](https://github.com/e-zz/logseq-plugin-agenda/issues/314)) ([e39fe12](e39fe12))

### Features

* ✨ add dark theme ([haydenull#300](https://github.com/e-zz/logseq-plugin-agenda/issues/300)) ([fa8fd6c](fa8fd6c))
* **calendar:** ✨ show days to deadline ([5fabaec](5fabaec))
* **calendar:** ✨ show deadline task in calendar ([ed5e060](ed5e060))
* **kanban:** ✨ show deadline in kanban ([86ed350](86ed350))
* **settings:** ✨ support specify logseq api config in web [skip ci] ([7cffbee](7cffbee))
* shortcuts for agenda v3 ([haydenull#297](https://github.com/e-zz/logseq-plugin-agenda/issues/297)) ([790be0d](790be0d))
* support set start of the week ([haydenull#296](https://github.com/e-zz/logseq-plugin-agenda/issues/296)) ([b87a00e](b87a00e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants