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

Dialog to provide filename for image paste #699

Open
break2make opened this issue Jan 30, 2023 · 5 comments
Open

Dialog to provide filename for image paste #699

break2make opened this issue Jan 30, 2023 · 5 comments
Labels

Comments

@break2make
Copy link

ctrl + alt + v pasting image clipboard with default name. Is it possible to have a dialog box to provide filename? Similar feature is present in VS Code Paste Image plugin.

@break2make break2make added ✨ enhancement 💬 discussion Disccussion on new features, projects, etc... labels Jan 30, 2023
@ggrossetie
Copy link
Member

That's a good idea, feel free to submit a pull request.

@tmichett
Copy link

Or if we can't have a dialog box, maybe expose settings that we can change ...

https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image

https://github.com/mushanshitiancai/vscode-paste-image

I've had decent luck with the above Extension, however, it breaks when used with your extension. If the Asciidoctor-VSCODE extension is uninstalled, it is possible to use the vscode-paste-image extension and specify some settings and those will be honored.

CleanShot 2023-03-31 at 10 57 42@2x

CleanShot 2023-03-31 at 10 58 11@2x

It would appear that some of the image pasting is hard-coded in the application here and I'm not the greatest coder (more of an admin and can change small snippets of code).

@tmichett
Copy link

FYI, I can get both plugins to run and do what I want on a Windows system, I just can't do it on a MacOS system and don't think I can do it on Linux either, but haven't tried as much there.

@budak7273
Copy link

Since asciidoc's paste image feature offers no configuration, it always puts images in an invalid location and is not useful for my project.

I was able to get the mushan.vscode-paste-image extension working at the same time as this one by removing the keybinding for the asciidoc-offered feature.

Here's the settings I use for the other extension:

{
    "pasteImage.showFilePathConfirmInputBox": true,
    "pasteImage.basePath": "${projectRoot}/modules/ROOT/images/",
    "pasteImage.path": "${projectRoot}/modules/ROOT/images/organizeMe",
    "pasteImage.defaultName": "Y-MM-DD-HH-mm-ss",
    "pasteImage.namePrefix": "renameMe_"
}

@ggrossetie
Copy link
Member

Since asciidoc's paste image feature offers no configuration, it always puts images in an invalid location and is not useful for my project.

@budak7273 I think you are referring specifically to the use case where you copy/paste an image with an Antora structure? This is probably related to #830?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants