[PATCH 1/2] Save all dive computer nicknames - whether used or not

Linus Torvalds torvalds at linux-foundation.org
Thu Jan 24 14:40:26 PST 2013

On Thu, Jan 24, 2013 at 2:35 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> What's the logic? If you have more than one on the command line, there's
> no default name. But if you have one or none or open a file from the
> menu then there is a default name and if you import others then they get
> added to that file, correct?

I'd suggest just having a counter of "files open". Which would be
cleared by ^N (New), and incremented by any file open (whether on the
command line of with ^O).

And then we only do ^S if that counter is one. Any other time you can
still save, it's just that you have to go to "Save As .." and specify
what name you want to save under, because it's not unambiguous even if
we do have a "default name".

Or something like that.


More information about the subsurface mailing list