KarstenSchulz / yt-issues

Command line tool to retrieve and export issues from YouTrack service
MIT License
7 stars 2 forks source link

Downloads are stored in the wrong place #8

Closed KarstenSchulz closed 1 year ago

KarstenSchulz commented 1 year ago

The README.md says, that every ticket goes into its own directory. At the moment this is not true: tickets are not stored in their own directory. This is to be handled as a bug.

KarstenSchulz commented 1 year ago

Fixed in bfe228e3a7f23090bc45c7404eae062f32f36064.

bollewolle commented 1 year ago

Hi Karsten,

For me it is now putting the .md file indeed inside a folder with the name of the issue, however it is putting the images and attachment in that folder inside another folder with the name of the issue. But the link to the inline image in the .md file is towards the "image.png" file in the same folder as the .md file, not to the "<nameOfImageFolder"/image.png": image

The result, when previewing the .md, is that the image is not shown but the name of the file instead: image

Not sure if that's clear, but let me know if it isn't and I'll try to explain it differently :)

bollewolle commented 1 year ago

I was able to solve this by the way by removing this part from your code: image Basically by setting the attachment_dir to the same as the issue_path.

After that the inline image is in the same folder as the .md: image

And in the markup preview it is showing the image very nicely inline with the text of the issue: image

Hope that can help you :)

KarstenSchulz commented 1 year ago

I see. I didn't use inline links in the description, so i missed this issue. I will go into it.

KarstenSchulz commented 1 year ago

@bollewolle Issue should be fixed in 1e1da381a66122cd21ee6dee4bd92b63da6e88a5. Please test.

bollewolle commented 1 year ago

@KarstenSchulz The images are now in the same folder and are shown inline when processing the .md files, so this looks good to me. Looks like it is solved, thanks!