Giter VIP home page Giter VIP logo

Comments (3)

telesoho avatar telesoho commented on August 23, 2024

@Klepeto
Tank you for your advice #11 and #12.

The extension user the current time as image file name. I think it is a best practice using the recommend file name as part of image file name, ex.
youwantfilename_2017_01_01_12_11_10_123.png

By doing so, you can avoid image overwrite, because the recommend file name always different from before one. If you really want to overwrite the before one, you have to modify the file name same as the before one image, or you can select the file name in markdown then press Ctrl+Alt+V.

I think the simplest is the best, if user have more choices, may be confuse them. Also may be user will not use this feature in 80% time.

from vscode-markdown-paste-image.

RobinWillson avatar RobinWillson commented on August 23, 2024

May I ask how to set rule to make filename "youwantfilename_2017_01_01_12_11_10_123.png"?

from vscode-markdown-paste-image.

altho1 avatar altho1 commented on August 23, 2024

You can grab this functionality from mushanshitiancai/vscode-paste-image
Ref:
pasteImage.defaultName

The default image file name.

The value of this config will be pass to the 'format' function of moment library(a js time manipulation library), you can read document https://momentjs.com/docs/#/displaying/format/ for advanced usage.

And you can use variable:

${currentFileName}: the current file name with ext.
${currentFileNameWithoutExt}: the current file name without ext.
Default value is Y-MM-DD-HH-mm-ss.

from vscode-markdown-paste-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.