[Geany] Enabling save after no changes

Enrico Tröger enrico.troeger at xxxxx
Mon Jan 26 18:33:48 UTC 2009


On Sun, 25 Jan 2009 14:00:37 -0500 (EST), Greg Smith
<gsmith at gregsmith.com> wrote:

>On Sun, 25 Jan 2009, Enrico Tröger wrote:
>
>> On Sat, 24 Jan 2009 18:28:41 -0500 (EST), Greg Smith
>> <gsmith at gregsmith.com> wrote:
>>
>>> There's multiple use cases this doesn't support too.  I might want
>>> to save a file just to update its timestamp, or just to confirm
>>> that I have appropriate permissions to change it before I actually
>>> begin editing it.
>>
>> For those things I would do in a console:
>> touch filename
>> or
>> ls -l filename
>
>There are several situations where the information given by "ls -l" is
>not actually sufficient to tell you whether you can edit a file.
>Examples include SELinux and Posix ACL environmentions.  Network
>mounts can be difficult here too if the permissions mapping is done
>badly or is complicated.
>
>Stepping aside from that, anytime a solution to an editing problem 
>involves dropping to the command line, that suggests to me that
>there's something that could be improved in the editor.

Sure, however for me this is as simple as pressing F4 to jump to the
embedded terminal.
But of course, this was not meant as 'the solution you should use',
just as my work flow looks like.


>> If we add something like this, I'd prefer it to be a hidden option as
>> it will be probably unlikely that many people will use it.
>
>Within a few minutes of me sending my message, Thomas noted that this 
>would be handy to him as well to update the timestamp so make will run 
>again.  That's one of the examples I was thinking of too.  I know you 
>would just run touch on the file.  While I respect that and that this 
>feature would be considered valuable by some, I think you'd be
>surprised by how many people would prefer this application to just
>work the same as most others here.  UI consistency across applications

This is an argument for both of us. I'm used to see the Save toolbar
button (or menu item or whatever) disabled when the document is
unchanged. Saying which of the different behaviours is the default
hardly depends on the applications you compare.


>is a virtue, and if something that improves that is available I can't
>imagine why you'd consider hiding it.

I just don't want to clutter the prefs dialog with such an option which
is maybe unimportant for most users.
What about changing the default behaviour to what you want and add a
hidden pref for people like me? Though I personally would still feel
this as a regression (i.e. removing existing features) but I also
realise that people think different than me :).

Just not sure.
Nick, any opinion on this?

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20090126/247ef23c/attachment.pgp>


More information about the Users mailing list