Skip to content

feat(app): make file editor window placement optional - #256

Open
loooinfo wants to merge 1 commit into
TooonyChen:mainfrom
loooinfo:feature/file-editor-window-placement
Open

loooinfo wants to merge 1 commit into
TooonyChen:mainfrom
loooinfo:feature/file-editor-window-placement

Conversation

@loooinfo

Copy link
Copy Markdown

Summary

  • Add a checked-by-default Keep the file editor in front of the main window option under Options → General → Tabs and window. The label describes the relation to the main window.
  • With the option off, the next editor window opens independently. The main window can come to the front and the editor can be minimized and restored. Opening a file again focuses the existing window and restores it if minimized.
  • Save the preference on this device. Changes apply after reopening the editor and leave open tabs and unsaved changes in place. App shutdown still closes the editor through the existing cleanup path.

Closes #255

Testing

  • Settings UI and persistence in English and Simplified Chinese, editor window reuse, unsaved changes, tray behavior, quit cleanup, and sync isolation. Checked screenshots in both languages.
  • Confirmed the editor placement test fails when the preference is bypassed. An audit run also found the new row could move the existing SSH agent input below the viewport. Its test now scrolls to that input in the normal window size.
  • go vet ./..., go tool mygo vet, Windows amd64 and macOS arm64 cross-builds passed.
  • A Win32 window smoke test under Wine checked native ownership, z-order, the minimize button style, minimize/restore, and the editor close callbacks. Windows 11 and macOS desktop testing remain pending.
  • go test -race -timeout 20m ./... reproduced the same three failures on both this branch and unmodified upstream 78c2f91: TestBackgroundImage, TestBackgroundReadsOffUIThread and TestCommandBarPage. The feature tests passed and no race was reported.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(app): make file editor window placement optional

1 participant