Skip to content

Tags support - #3

Merged
polhuang merged 1 commit into
polhuang:mainfrom
Artawower:main
Nov 19, 2025
Merged

polhuang merged 1 commit into
polhuang:mainfrom
Artawower:main

Conversation

@Artawower

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 7, 2025 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for syncing tags between TickTick tasks and Org Mode headings. Tags are now preserved during bidirectional synchronization.

  • Extract and format tags when converting TickTick tasks to Org headings
  • Extract and serialize tags when converting Org headings to TickTick task data

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ticktick.el
Comment on lines +437 to +439
(if (and tags (> (length tags) 0))
(concat " :" (mapconcat #'identity tags ":") ":")
""))

Copilot AI Nov 7, 2025

Copy link

Choose a reason for hiding this comment

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

The mapconcat function expects a sequence (list, vector, or string), but tags from the TickTick API (parsed with json-array-type 'list at line 369) will be a list. While this is correct, the check (> (length tags) 0) could fail if tags is not a sequence type. Consider using (and tags (not (seq-empty-p tags))) for more robust type checking, or add an explicit listp check.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Unnecessary, sinceAPI omits tags when there are no tags.

Comment thread ticktick.el
@polhuang

Copy link
Copy Markdown
Owner

Thanks for your PR! Taking a look today.

@polhuang polhuang left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good - thanks!

Comment thread ticktick.el
Comment on lines +437 to +439
(if (and tags (> (length tags) 0))
(concat " :" (mapconcat #'identity tags ":") ":")
""))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Unnecessary, sinceAPI omits tags when there are no tags.

@polhuang
polhuang merged commit 860de3a into polhuang:main Nov 19, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants