question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to change the filname including currentFileNameWithoutExt

See original GitHub issue

First i want to thank you for your plugin!

My config is this: "pasteImage.path":"${currentFileDir}/assets/${currentFileNameWithoutExt}"

so my result imagename is: ![](assets/Bestellprozesse/2018-01-23-13-46-54.png)

How to change the Filename to this ? ![](assets/Bestellprozesse_2018-01-23-13-46-54.png)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mushanshitiancaicommented, May 31, 2018

Hi, I’m come back😄

You can update vscode-paste-image to v1.0.1.

New configuration pasteImage.namePrefix can meet your need. Like this:

"pasteImage.path":"${currentFileDir}/assets"
"pasteImage.namePrefix": "${currentFileNameWithoutExt}_",
1reaction
mushanshitiancaicommented, Jun 6, 2018

@tatoosh Sorry, It’s a bug. I fixed in version 1.0.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get the filename without the extension from a path in ...
You can just find the index of the first dot in the basename and then slice the basename to get just the filename...
Read more >
6 Best Ways to Get Filename Without Extension in Python
First, we will have to separate the pathname and the extension. Then from the pathname, we shall separate the filename with the directory...
Read more >
Add a file name without the extension into a cell in Excel
I just want the name. Insert the current file name only. Type or paste the following formula to insert the name of the...
Read more >
Get filename without extension in Python - Techie Delight
This post will discuss how to get a filename without an extension from the specified path in Python. 1. Using os.path.splitext() function.
Read more >
Read filename without extension in Bash - Linux Hint
The following `basename` command will retrieve the filename with extension. SUFFIX is omitted from this command. Here, the output is 'product.txt'. $ basename...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found