Bug 373759 - Implement autonumeration back
Summary: Implement autonumeration back
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-17 13:18 UTC by Rubén Gómez Antolí
Modified: 2018-10-19 22:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 18.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rubén Gómez Antolí 2016-12-17 13:18:13 UTC
Hello:

Good job with the new Spectacle application but it lost some features from Ksnapshot. One of this are autonumeration of snapshots.

These are really usefull.

Please, implement it again.

Thank you.
Comment 1 Rubén Gómez Antolí 2016-12-17 13:40:33 UTC
Extending explanation of feature request:

In Ksnapshot you can change the name to save snapshot and, automatically it autonumerates.

These feature is not in Spectacle.

Example:

- Take a snapshot, save as Snap_001.png
- Take a new snapshot: Spetacle autonumerate as Snap_002.png.
- Close snapshot and returns to default naming convention for new running.

Thanks.
Comment 2 Nate Graham 2018-02-10 15:51:36 UTC
There's a patch that implements this: https://phabricator.kde.org/D10099
Comment 3 Nate Graham 2018-10-19 22:39:24 UTC
Git commit 754e1d3a92c13d9327f4dbf3ed9abb08083af7dd by Nate Graham, on behalf of Kyle Utecht.
Committed on 19/10/2018 at 22:34.
Pushed by ngraham into branch 'master'.

Add default file name token for (padded) sequential file numbering

Summary:
Default file name tokens %d will add an auto-incremented sequential file number when creating file names.
Numbering starts with 1. If the save directory has other files present with the same name (excluding
extension) but another number in the place of %d, the next number after that of the existing file will be
used to create the new file name.
The sequential number can be padded with %Nd where N is a number of total digits. If the padded token is
used in the
default file name, only file names with a number of the padded length or longer will be considered when
determining the next sequential number to use in the file name. For example, with the save name like
'Screenshot-%3d' and a save directory with only 'Screenshot-3,' the next generated file name will be
'Screenshot-001' since the existing file's number portion is not at least as long as the padded number
length.
Related: bug 358641
FIXED-IN: 18.12.0

Reviewers: alexeymin, ngraham

Reviewed By: alexeymin, ngraham

Subscribers: shubham, ngraham, alexeymin, #spectacle

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D16304

M  +47   -1    src/ExportManager.cpp
M  +4    -2    src/Gui/SettingsDialog/SaveOptionsPage.cpp
M  +3    -2    src/SpectacleConfig.cpp

https://commits.kde.org/spectacle/754e1d3a92c13d9327f4dbf3ed9abb08083af7dd