Ability to clean page title in filename to use it as URL

Description

Hi,

Would it be possible to add an option to clean the page title in filename to use the screenshot picture directly on a HTML page ?

For example, a page title "My web page" should be saved as a file named "my-web-page.png" instead of "My web page.png" which becomes the following URL : "My%20web%20page.png".

Thnak you for your great job with Greenshot.

Fred

Environment

None

Activity

Show:
Robin Krom
May 12, 2014, 11:20 AM
  • *status*: open --> accepted

  • *Resolution*: none --> closed

Robin Krom
May 12, 2014, 11:20 AM

Wait for Greenshot 1.1.9 and change the filename pattern (on the output tab in the settings) to something like this:
${title:r ,-}
This will "r"eplace all the spaces for - in the title.

Technical details:
The : is to split the variable from the parameters, and the parameter is "r" for replace and than a " " (space) which is the old value followed by a "," as separator and than a "-" as the new value.

This feature is added quickly, and currently has some disadvantages. e.G. you can't replace a ",". It is however possible to add multiple replacements and replace complete words.
e.g: ${title:r ,;rpage,} will replace the spaces to "" AND remove the word "page" (is case sensitive)

Best wishes,
Robin

Assignee

Unassigned

Reporter

fredouille45

Labels

None

Priority

Configure