[Spectacle] [Bug 476023] Explain the sequential numbering filename template better (%Nd)

2023-12-01 Thread Noah Davis
https://bugs.kde.org/show_bug.cgi?id=476023

Noah Davis  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/grap
   ||hics/spectacle/-/commit/ebe
   ||e5b1d413eeba6a79f65160bc6cc
   ||1e543fdad1
 Resolution|--- |FIXED

--- Comment #3 from Noah Davis  ---
Git commit ebee5b1d413eeba6a79f65160bc6cc1e543fdad1 by Noah Davis.
Committed on 01/12/2023 at 17:47.
Pushed by ndavis into branch 'master'.

Change filename placeholder format

Use `` instead of `%placeholder`. This makes it easier to
use
more descriptive or complex placeholders.

Also use more descriptive placeholders since we can and migrate old
placeholders.

With this new format we could add things like `` or
`` as shorthands for common date/time formats.

I use `` instead of `%key%` because sequences with obvious opening
and closing characters are easier to parse for humans and machines. I
chose '<' and '>' instead of other pairs of characters because I don't
need to escape '<' or '>' in regex. I do need to escape them in Rich
Text/HTML/XML, so it's sometimes less convenient than '{' and '}', but
not too bad.

M  +9-10   doc/index.docbook
M  +7-0kconf_update/CMakeLists.txt
A  +70   -0kconf_update/spectacle-24.02.0-change_placeholder_format.cpp
[License: LGPL(v2.0+)]
M  +4-0kconf_update/spectacle.upd
M  +30   -32   src/ExportManager.cpp
M  +13   -1src/ExportManager.h
M  +3-0src/Gui/SettingsDialog/ImageSaveOptions.ui
M  +2-2src/Gui/SettingsDialog/ImageSaveOptionsPage.cpp
M  +3-0src/Gui/SettingsDialog/VideoSaveOptions.ui
M  +2-2src/Gui/SettingsDialog/VideoSaveOptionsPage.cpp
M  +2-2src/Gui/SettingsDialog/spectacle.kcfg
M  +21   -22   tests/FilenameTest.cpp

https://invent.kde.org/graphics/spectacle/-/commit/ebee5b1d413eeba6a79f65160bc6cc1e543fdad1

-- 
You are receiving this mail because:
You are watching all bug changes.

[Spectacle] [Bug 476023] Explain the sequential numbering filename template better (%Nd)

2023-11-30 Thread Noah Davis
https://bugs.kde.org/show_bug.cgi?id=476023

Noah Davis  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #2 from Noah Davis  ---
https://invent.kde.org/graphics/spectacle/-/merge_requests/300

This MR fixes the issue by changing the sequence placeholder to `<#>` with
additional `#`  characters adding more padding (e.g., `<###>` becomes `001`)
and explaining that.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Spectacle] [Bug 476023] Explain the sequential numbering filename template better (%Nd)

2023-10-24 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=476023

Nate Graham  changed:

   What|Removed |Added

   Severity|normal  |wishlist
 CC||n...@kde.org
 Ever confirmed|0   |1
   Keywords||usability
 Status|REPORTED|CONFIRMED

-- 
You are receiving this mail because:
You are watching all bug changes.

[Spectacle] [Bug 476023] Explain the sequential numbering filename template better (%Nd)

2023-10-23 Thread Noah Davis
https://bugs.kde.org/show_bug.cgi?id=476023

--- Comment #1 from Noah Davis  ---
In the first place, it's a bit hard to show how that behavior works in the UI,
so maybe it would be better to make it so the number of `d` characters in a row
is the number of digits to use. Would need a kconf_update settings migration
script.

-- 
You are receiving this mail because:
You are watching all bug changes.