CodeSnap icon indicating copy to clipboard operation
CodeSnap copied to clipboard

The default file name is code.png, something else would be better.

Open aahnik opened this issue 5 years ago • 4 comments

A better file name would be {file_name_from_where_code_is_taken}_{selected_line_range}.png

A better default save location would be the current directory.

Obviously, I know that I can manually write a name while saving, or later rename it. But some default setting would be great.

aahnik avatar Dec 07 '20 08:12 aahnik

Most popular recording/screenshot softwares also use these kind of file naming:

  1. CodeSnap_YYYY-MM-DD_HH-mm-SS (e.g. CodeSnap_2020-12-08_12-35-40)
  2. CodeSnap_1, CodeSnap_2, CodeSnap_3, and so on...

But personally, I don't really care about the date and time or something very specific like yours. So, the second option (iterative naming) is arguably better and easy enough to remember (in case you need to access it later). But yes, configurable settings would be nice for some people.

AndhikaWB avatar Dec 08 '20 06:12 AndhikaWB

i am not taking of datetime name, rather filename(from which snap is taken) and selection line(the lines which are selected)

aahnik avatar Dec 08 '20 06:12 aahnik

I think you missed my point. Let me make it clear for you: just because you need it doesn't mean other people need it too. Your suggestion is very specific for your case that other people will find it useless. I'm basically giving other alternatives that is more standardized (used by thousand softwares) and clearly useful for many people.

AndhikaWB avatar Dec 08 '20 06:12 AndhikaWB

What i am saying is an option to set a default filename. People can then customize it according to their wish.

aahnik avatar Dec 08 '20 07:12 aahnik