xalanq / cf-tool

:bar_chart: Codeforces CLI (Submit, Parse, Test, etc.). Support Contests, Gym, Groups, acmsguru, Windows, macOS, Linux, 7 MB
MIT License
1.32k stars 227 forks source link

Could you please add more placeholder? (New feature request) #144

Open jerrywcy opened 3 years ago

jerrywcy commented 3 years ago

I used to write such things in my code:

/*
ID: jerrywcy
LINK: 
TITLE: 
LANG: C++
STATUS: 
*/

In such things, I record necessary information of the problem itself in case I forget what problem this code is for or want to find the exact problem (using whole article search) Of course, I could simply enter all the information by hand and that's what I did in the past. But I was wondering as we had such a great tool, why can't we use more placeholder such as the current contest's number or the current problem, such that I could use it to complete the LINK property? Use case like: http://codeforces.com/contest/$%I%$(contest number, such as 1583)/problem/$%P%$(current problem id, such as A) It would be even better if it could parse the whole name of the problem, such as $%N%$(name of the problem, such as A. Windblume Ode)