CodeEditApp / CodeEditApp/CodeEditSourceEditor

✨ Minimap - Markup comments

Đang mở
#313 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Swift
Star
719
Fork
160
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

In many code editors(like xcode, vscode etc) the minimap provides the ability to also function as a table of contents.

That is done by using the following keywords:

```swift
//MARK: Regular Mark

//MARK: - Mark with line seperator

//TODO: A todo list item.

//TODO: - A todo list item with line seperator.

//FIXME: A fixme item

//FIXME: - A fixme item with line seperator.
```

![Image](https://github.com/user-attachments/assets/f552cf8b-fe42-4bf4-bfc8-0186762a0ac8)

This picture shows how it is implemented in xcode.

### Additional Context

As can be seen in the picture above, the xcode minimap doesn't differentiate between `TODO` and `FIXME`. for both it does show a line separator.
I would suggest a few changes to xcode's implementation of todo and fixme.

1. Both fixme and todo are not needed. just todo is good enough.
2. It might be beneficial for todos to be shown in the minimap, not just as a line. Perhaps with a smaller font or just the word todo, showing there is a todo at that place.
3. I don't think a line separator is needed for todo's
4. It might be nice to have one of the left side panels to be a list of all todo's. If there aren't any in the code, perhaps it can be a built-in todo list (which is currently, I believe, way out of scope and for sure a feature on its own.)

Besides the line separator there is no difference between the 2 `Mark`'s.
Perhaps it can be considered to make the mark without line separator regular font and slightly smaller, and to keep the line-separated mark bold and large.

### Screenshots

_No response_

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đá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.