coteditor / CotEditor

Lightweight Plain-Text Editor for macOS
https://coteditor.com
Other
6.24k stars 427 forks source link

A problem about behavior of "Outline" sidebar #1521

Closed tatsy-ymj closed 10 months ago

tatsy-ymj commented 10 months ago

Description

I posted the following issue 2023/09/08.

Description When a window is closed and the same file is reopened, the inspector state is not saved.

To Reproduce Create a file. Show "Inspector". Save the file. Quit CotEditor, and then open the file again. There is no problem. However, close the file window (not "Quit") and reopen the file, the inspector state is not saved.

I thought the problem was resolved, but that was my mistake (the reason for my mistake was that I reinstalled 4.5.9), and I post again because the same problem occurs with 4.6.0 beta3.

  1. Create a file, "View"->"Inspector"->"Outline"

    スクリーンショット 2023-09-13 15 30 34
  2. Close the above window (not "Quit").

  3. Reopen the file. "Outline" sidebar doesn't appear.

    スクリーンショット 2023-09-13 15 30 50
  4. "View"->"Inspector"->"Outline", Quit CotEditor

    スクリーンショット 2023-09-13 15 31 05
  5. Reopen the file. "Outline" sidebar appears.

    スクリーンショット 2023-09-13 15 31 17

The "Outline" sidebar behaves differently when closing the document window and when exiting CotEditor.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

No response

CotEditor version

4.6.0-beta.3 (585)

macOS version

13.5.2(22G91)

Additional context

No response

1024jp commented 10 months ago

Ok, now I understand. The issue is the initial visibility of the inspector for a document does not take over from the last document. Right? Then, that's not what I designed, and I confirmed it doesn't work in the latest beta. Let me have some time to fix it.

1024jp commented 10 months ago

Fixed.