code heat map #558
snoopy
started this conversation in
Show and tell
Replies: 2 comments
-
Nice idea. The code for it is here right? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Cool! Thanks for sharing :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Inspired by the same feature here on Github I've made a code heat map for Textadept.
![heatmap](https://private-user-images.githubusercontent.com/37296322/358324594-37df2f39-92f5-4cdf-aea3-58ffdd170a72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTc0NTcsIm5iZiI6MTczOTE1NzE1NywicGF0aCI6Ii8zNzI5NjMyMi8zNTgzMjQ1OTQtMzdkZjJmMzktOTJmNS00Y2RmLWFlYTMtNThmZmRkMTcwYTcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDAzMTIzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjYTdiOTE4ZmVhNzMzMjY3ODliZDZiNjgwMTkzZGFhZjUxN2I5MmE5YTYyYWNmNDg5YTQxOTkzZjA3ZjUxNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-2Cbqjqp7NLC-IocaP8WERKX4mRqmLwj_IgZqc4RRWQ)
It allows seeing at a glance if the code is hot or not. The range goes from red (no more than 24 hours old) to dark blue (at least 5 years old).
It's based on the output of git-blame. Admittedly, it is pretty gimmicky but might prove useful to quickly discern recent code changes.
Either way, it was a nice excuse to look into using custom markers. It's also a good example of how easy it is to extend Textadept with whacky things.
Beta Was this translation helpful? Give feedback.
All reactions