zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.51k stars 2.06k forks source link

setting to make latest lines altered a different shade in the line numbers #13747

Open RustoMCSpit opened 4 days ago

RustoMCSpit commented 4 days ago

Check for existing issues

Describe the feature

image

currently, there are two shades. one for currently active line, and another for all other lines. i would like zed to shade lines ive recently edited a different shade. for example, if my most recent edit is line 4, that would be the third shade. if i edit line 9, line 9 is the primary shade, line 4 is the secondary shade, and all other lines are the passive shade. if i then edit line 12, line 12 becomes the primary shade, line 9 becomes the secondary shade, and all other lines are the passive shade. however, if i edit adjacent lines, so after editing line 12 i also edit 13 and 14, they are all shaded in the secondary shade if i moved on to editing line 3. there can be more than 3 shades, but thats the basic idea. it helps me remember what ive worked on at a glance as lines ive recently worked on are shaded brighter than ones i havent (it should also remember what lines ive recently edited the next time i open up the file (unless it was edited by another program in between then as theres no point)

If applicable, add mockups / screenshots to help present your vision of the feature

No response

RustoMCSpit commented 4 days ago

also, displaying on the line recent edits would be cool. the active line already has a line to indicate where it is. lines only work for single line edits though image

however, if i edit adjacent lines, so after editing line 12 i also edit 13 and 14, they are all shaded in the secondary shade if i moved on to editing line 3

that can be indicated on the scroll line as the below or as two "T"s symmetrical on the X axis (one T upwards over one T inverted below). it could also just be a shaded block image

RustoMCSpit commented 3 days ago

i also believe allowing the user to insert their own bookmarks into the timeline could be neat, or having a parameter called "bookmark_text: functions, classes" which in this case would make a line or dot for any function or class added