elementary / elementary/code

Sort symbols pane by location

未關閉
#809 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Needs Design Status: Incomplete
主要語言
Vala
星號
521
分支
118
平均合併
1 天 8 小時
30 天內合併 PR
14

描述

## Prerequisites
- [x] I have searched open and closed issues for duplicates.

## Feature
The symbols pane is very useful, but I find it difficult to use because it sorts the symbols alphabetically. In other code editors (like Builder and Visual Studio), the symbols outline is sorted by where it appears in the code, or there's an option to do so. So functions that appear at the top of the file appear at the top of the outline, and so on. I think of my code spatially, so this is much more natural to me than alphabetically hunting down the function I'm looking for.

Here's what it looks like in Visual Studio Code. I've included the file with functions collapsed, so you can see how the outline maps functions to their locations in code exactly.
![Screenshot from 2020-05-04 10 28 41](https://user-images.githubusercontent.com/29022469/80989519-47893d80-8df2-11ea-8e6e-8c3da97e67ef.png)

I don't expect this to be the only option, so it would probably require a switching interface of some sort. Again, here's what Visual Studio Code does:
![Screenshot from 2020-05-04 10-21-48_modified](https://user-images.githubusercontent.com/29022469/80989975-e150ea80-8df2-11ea-83ba-de0571f3ab64.png)

貢獻指南

開啟貢獻指南

研究方向

從現有的符號窗格及其按字母順序排序的行為入手;追蹤符號位置的表示方式以及窗格控制項的建構方式。定義排序切換開關,並驗證符號可以依原始碼順序顯示,同時保留目前的字母順序選項。

由索引模型根據 Issue 內容生成。

評估

領域
desktop, tooling
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。