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

Insert image in relative location #16

Open
konradlb opened this issue Jul 25, 2023 · 0 comments
Open

Insert image in relative location #16

konradlb opened this issue Jul 25, 2023 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@konradlb
Copy link

Description

Marktext uploading pasted image from clipboard into the wrong directory. The documentation says "current file directory" for . and says "The root directory is used when a project is opened and no variables are used."
So . for file directory and empty variable is for root directory (of the project).

  • [x ] Can you reproduce the issue?

Steps to reproduce

  1. In settings, set relative image folder name to: . for current file directory
  2. Use option "open folder" to open folder with subfolders containing .md files. Example folders structure:
    myMdFiles/1/file.md
    myMdFiles/2/file.md
    myMdFiles/3/file.md
  3. Use left sidebar to open .md file
  4. Paste image into editor
  5. The image will be saved in the directory: myMdFiles/exampleName.png and not in the directory of the open file f.e: myMdFiles/1/exampleName.png

Marktext saves image correctly only when I use option "Open File" for open single file, but when I want to work with multiple files at once using sidebar it doesn't work as it should.
Expected behavior:
Save image into current opened FILE directory

Actual behavior:

Save image info current opened directory

Link to an example: [optional]

image
image

Versions

  • MarkText version: 0.17.4
  • Operating system: Linux Mint 21.1
@jacobwhall jacobwhall added the bug 🪲 Something isn't working label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants