thesamim / TickTickSync

GNU General Public License v3.0
98 stars 2 forks source link

Handling Slashes in Tags #140

Open chrisfurlong-aiwyn opened 1 week ago

chrisfurlong-aiwyn commented 1 week ago

Describe the bug

I'm not sure whether to call this a bug, or if it's intended functionality and I'm requesting a feature. When a tag in Obsidian is something like engineering/architecture it is translated directly as such into TickTick. Unfortunately, TickTick doesn't support a "/" character in a tag.

To Reproduce Create a task in obsidian with a "/" contained in an associated tag

Expected behavior I think the ideal behavior would be to translate it into the TickTick Parent Tag structure, where "engineering" would be the parent tag and "architecture" would be the child tag.

thesamim commented 1 week ago

Will consider.

There are some interesting problems with how TickTick handles the parentage, and it only allows one level of parentage. Obsidian allows unlimited depth.

chrisfurlong-aiwyn commented 1 week ago

That's frustrating. If it helps, for my use case, one level would be more than enough. Perhaps the first part // could be the parent, and if there's a SECOND and THIRD you could replace slashes with hyphens? The problem now is it just translates the slashes as is and it leads to issues. Even a generic hyphen replacement would be appreciated with no parent support

Chris Furlong Chief Technology Officer @.*** www.aiwyn.ai ( http://www.aiwyn.ai )

Sent via Superhuman ( @.*** )

On Tue, Jun 25, 2024 at 8:53 AM, thesamim < @.*** > wrote:

Will consider.

There are some interesting problems with how TickTick handles the parentage, and it only allows one level of parentage. Obsidian allows unlimited depth.

— Reply to this email directly, view it on GitHub ( https://github.com/thesamim/TickTickSync/issues/140#issuecomment-2189180112 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/BDNWOX5YFLGASID6PN4FZGTZJGAANAVCNFSM6AAAAABJZFNLF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBZGE4DAMJRGI ). You are receiving this because you authored the thread. Message ID: <thesamim/TickTickSync/issues/140/2189180112 @ github. com>

thesamim commented 1 week ago

Noted. Will see what I can do....

thesamim commented 6 days ago

@chrisfurlong-aiwyn : A thought just occurred: I think the real answer should be: If there are slashes in the tags, TickTickSync should take the last tag in the hierarchy. eg if we have #one/two/three the tag to TickTick would be #three.

The rationale: Tasks are tagged with one tag, regardless of parentage, in TickTick. So if we had #one/two in Obsidian, in TickTick we would tag it with #two. The fact that it has a parent of #one is only relevant in the tag hierarchy view, but doesn't show up in the task at all.

At least that's what I've observed.

What do you think?

thesamim commented 8 hours ago

@chrisfurlong-aiwyn : long story short: it ain't that simple. For right now, replacing all slashes with hyphens on the way up, replacing all hyphens with slashes on the way back.

I'll dig a bit further to see if there's a more rational way to deal with parentage....