CodeEditApp / CodeEditApp/CodeEdit

✨ Hide Interface

Đang mở
#1,632 13 bình luận 0 reaction 1 người được giao Được @SimonKudsk nhận Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
Swift
Star
23k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

Provide an option to **hide the interface**, similar to how Sketch and Xcode handle UI minimization.

This would live under **View → Hide Interface** (or **Show Interface** if currently hidden), with a suggested keyboard shortcut of ..

When **Hide Interface** is enabled:
- The **toolbar** shrinks (removing all toolbar items; the title displays the current active file).
- The **navigator area**, **inspector area**, **utility area drawer**, and **status bar** all hide.
- A **floating line/character position indicator** appears at the bottom right of the window.
- In the **View** menu:
- "Hide Interface" becomes "Show Interface"
- "Hide Navigator Area" becomes "Show Navigator Area"
- "Hide Inspector Area" becomes "Show Inspector Area"
- "Hide Utility Area" becomes "Show Utility Area"

#### Behavior Notes

- Toggling **Show/Hide Interface** and **Show/Hide Navigator/Inspector/Utility Areas** should be handled **separately**:
- If the user hides the navigator area, hides the interface, then shows the interface, the navigator area remains hidden.
- If the user hides the navigator area, hides the interface, then manually shows the navigator area, *only* the navigator becomes visible.
- When the user shows the interface again, all other interface elements will return *along with* the navigator, which remains visible.

- If any UI element is shown manually while "Hide Interface" is active, the hidden state persists for all other interface components. Re-toggling "Show Interface" restores the remaining hidden interface components.

- We should **disable animations** specifically when toggling **Hide Interface**, so the change happens **instantly**.

- Toggling **Show/Hide Interface** will only apply to the currently focused workspace

### Alternatives Considered

This approach may later serve as the default behavior for **single file mode**, where "Hide Interface" is enabled by default and a workspace can be opened from that simplified window.

### Additional Context

**Xcode** behaves similarly when opening a single file:

https://github.com/CodeEditApp/CodeEdit/assets/806104/3a1f8b68-b5b6-428b-8e58-cd651d2a0085

**Sketch** example:

https://github.com/CodeEditApp/CodeEdit/assets/806104/f3b76fc9-4f7d-465a-8317-873106272156

### Related issues

- #1696
- #1639

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.