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.

Would be nice to have a feature to automatically set alt text to the file name

See original GitHub issue

Hi love this extensions! Maybe I’m not using the settings correctly, but when I highlight a word then paste in the image it pastes in like this:

![](Repo_Layout.png)

but it would be really nice if the alt text could automatically be updated with the file name or path when pasting it in.

![Repo_Layout.png](Repo_Layout.png)

Thank you again for your hard work I love this extension makes documentation so much easier!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mushanshitiancaicommented, Jun 30, 2019

Hello, you can set insertPattern to ![${imageFileName}](${imageFilePath}) or ![${imageFileNameWithoutExt}](${imageFilePath})

image

1reaction
yuyujulincommented, Mar 4, 2019

+1, and it’s better that don’t include the extention name and the path into the alt text. File name is enough, like this Repo_Layout

Read more comments on GitHub >

github_iconTop Results From Across the Web

Everything you need to know to write effective alt text
Select File > Options > Accessibility and unselect Automatically generate alt text for me under Automatic Alt Text. Where to find alt text...
Read more >
Accessibility: Image Alt text best practices - Siteimprove Support
Alt text for informative images​​ Informative images are any images that add to the context of a page. If the content of a...
Read more >
Image Alt Text vs. Title Text vs. File Names: What's the ...
Alt text, or alternative text, is used to display text that describes an image to “alternative” sources. Primarily, its goal is to make...
Read more >
How to Add Media Title and Alt Tags Automatically in WordPress
Optimizing your website for search engines like Google is difficult. You can simplify it with this guide to add media titles and alt...
Read more >
Image Alt Text: What It Is, How to Write It, and Why It Matters to ...
Also called alt tags and alt descriptions, alt text is the written copy that appears in place of an image on a webpage...
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