#127 ✓invalid
Martin Frost

Don't ask to save empty untitled documents

Reported by Martin Frost | December 30th, 2010 @ 05:45 PM

What I did:

I started Kod, toyed around a bit, wrote some text, and then deleted all of it. I then hit ⌘Q.

What I expected to happen:

I expected the program to quit, since I didn't have any open tabs that were changed.

What actually happened:

Kod asked me if I wanted to save the empty, untitled document.

Comments and changes to this ticket

  • rsms

    rsms December 31st, 2010 @ 04:05 AM

    • State changed from “new” to “invalid”
    • Tag set to ux

    This is by design, since the undo manager had a "dirty stack" (recorded changes not cleared or document was saved).

    It's designed like this to help this use-case:

    • open new document
    • write the ultimate, most awesome program ever
    • select all
    • intend to hit Cmd+C but instead hit backspace and Cmd+W

    And similar use-cases when you accidentally removed everything. Most applications work like this.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket