Bug 354046 - Use the previous save* action as the default in a new session
Summary: Use the previous save* action as the default in a new session
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-18 14:58 UTC by Ivan Čukić
Modified: 2016-01-27 18:42 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 16.04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Čukić 2015-10-18 14:58:52 UTC
It would be nice if Spectacle remembered what saving mode the user used last time and place it as the default one when it is started the next time.

For example, Peter likes to name his screenshots and he prefers Save As and Exit, since he takes only one screenshot at a time.

Marge likes to take multiple screenshots at a time, so she prefers just 'Save'.

Ricardo has OCD :) and likes to create multiple screenshots at a time, and to name them, so he prefers 'Save As' without exit.

The alternative to using the last action as the default is to add the explicit configuration option to the configuration dialogue.
Comment 1 Boudhayan Gupta 2015-10-19 09:52:44 UTC
I'm deferring this to the next cycle.
Comment 2 Albert 2015-12-25 23:03:09 UTC
I would like to add to this, along with remembering which save mode, have Spectacle remember the last folder location. Currently, going to Save As... the home folder is selected.  If I change this to another folder, and then take a different screenshot, and going back to Save As... the location reverts back to home folder.  Even with the default save folder changed in preferences, this location is not the one shown in the Save as.. dialog
Comment 3 Sebastian Trueg 2016-01-11 14:09:58 UTC
Another very important "small" thing which made using KSnapshot so great. I am just commenting to raise awareness and add myself to cc.
Comment 4 Boudhayan Gupta 2016-01-16 18:12:26 UTC
Albert: The Save-As issue was a real bug which I ended up fixing in https://quickgit.kde.org/?p=spectacle.git&a=commit&h=33aa1dd69151c0067361bf6d1eef40cd6c752559

I had to switch to Qt's in-built Save As dialog box for two bugs with KDE's one - I've filed bug reports #357863 and #357865 for them. When they're fixed I'll switch back to KDE's dialog box.

As for this particular one - I'll take a crack at it now. Let's see how it goes :-)
Comment 5 Boudhayan Gupta 2016-01-16 19:14:04 UTC
Git commit 2e53cae2704701e73bd137f88caed049d7085ac2 by Boudhayan Gupta.
Committed on 16/01/2016 at 19:12.
Pushed by bgupta into branch 'master'.

Show last-used save action on the Save button
FIXED-IN: 16.04

M  +47   -11   src/Gui/KSMainWindow.cpp
M  +1    -0    src/Gui/KSMainWindow.h
M  +13   -0    src/SpectacleConfig.cpp
M  +3    -0    src/SpectacleConfig.h

http://commits.kde.org/kscreengenie/2e53cae2704701e73bd137f88caed049d7085ac2
Comment 6 Albert 2016-01-25 16:58:07 UTC
dont mean to nitpick, but can you also have it remember filename.filetype when saving? ksnapshot would remember file and type (and add a number as in "file1.jpg")
Comment 7 Boudhayan Gupta 2016-01-25 18:04:48 UTC
Sure. File a new bug and I'll get around to it. But do file a new bug, or I'll forget.
Comment 8 Trevor Parsons 2016-01-27 18:42:06 UTC
(In reply to Boudhayan Gupta from comment #7)
> Sure. File a new bug and I'll get around to it. But do file a new bug, or
> I'll forget.

Albert has file the suggested bug as https://bugs.kde.org/show_bug.cgi?id=358641