File mask %T non compatible and $name

Bug #513616 reported by nomnex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
Low
Mario Kemper (Romario)

Bug Description

I use the file mask: $name_%Y%m%d_%T
"%T" outputs file names not compatible with other file systems (vfat, ntfs) because of the separator ":"
Please change %T from 13:13:13 to 131313 or give the masks option" %hh" "%mm" "%ss" with the separator of our choice

"$name" will output "Shutter - Preferences", I don't want space in my file to speed up my commands (bash). Is there way to have an additional mask, output "Shutter_-_Preferences" instead?

Regards

Karmic
Shutter v0.85.1

Revision history for this message
nomnex (nomnex) wrote :

Wait! This is more annoying than is seems. I use the service Ubuntu One, there is conflict with file names with non compliant characters: ":" "/" etc. My print screens cannot be uploaded on the U1 server unless I rename the files.

The mask "name_date_time" is more handy than a dull "name_num". Thanks to fix the %T mask.

Revision history for this message
nomnex (nomnex) wrote :
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote : Re: [Bug 513616] [NEW] File mask %T non compatible and $name

Am Donnerstag, den 28.01.2010, 06:12 +0000 schrieb nomnex:
> I use the file mask: $name_%Y%m%d_%T
> "%T" outputs file names not compatible with other file systems (vfat,
> ntfs) because of the separator ":"
> Please change %T from 13:13:13 to 131313 or give the masks option" %
> hh" "%mm" "%ss" with the separator of our choice
>

You can use all wildcards listed here:
http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html

The tooltip lists some examples only. Maybe this is not stated clearly
enough.

You can use the file mask: $name_%NNN_%H_%M_%S to get rid of the
separator ":".

> "$name" will output "Shutter - Preferences", I don't want space in my
> file to speed up my commands (bash). Is there way to have an
> additional
> mask, output "Shutter_-_Preferences" instead?
>

There is no mask like this, yet. It is simply the window title that is
used here. Only a few things are handled here, e.g. "/" in window titles
are replaced by "-".
What do you think of an additional checkbox like "Avoid blanks in
filenames". Or we need to create a new wildcard like $nb_name
(noblanks_name)?

Regards
Mario

Revision history for this message
nomnex (nomnex) wrote :

Hi Mario

> The tooltip lists some examples only

good news, I though I was limited by the pre-sets in the example.

> What do you think of an additional checkbox like "Avoid blanks in
filenames". Or we need to create a new wildcard

either ways would do. Ins't a wildcard easier to implement than a GUI option?

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

@Vadim: What do you think? GUI option or new wildcard? Do you have any suggestion for altering the current tooltip to be more helpful here? Maybe we should include the link (http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html) ?

Changed in shutter:
assignee: nobody → Mario Kemper (Romario) (mario-kemper)
importance: Undecided → Low
milestone: none → 0.86
status: New → Confirmed
Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 513616] Re: File mask %T non compatible and $name

I'm in favour of a new wilrdcard, because it's not such a common user option
to begin with.

Changed in shutter:
status: Confirmed → Fix Committed
Changed in shutter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.