kitty icon indicating copy to clipboard operation
kitty copied to clipboard

Download description as well

Open lquenti opened this issue 3 years ago • 1 comments

First of all: Great program!

I code on a pretty old thinkpad with a 1366x768 resolution.

I haven't looked at the code yet. If you use the API, do they provide access to the problem description as well?

If that's possible and if you think that it would be a useful feature, I could implement it as well.

Would that be an acceptable feature or too bloaty?

lquenti avatar Jul 18 '22 11:07 lquenti

My apologies @lquenti, I simply haven't seen that this issue was created. It sounds like a great idea!

I would suggest putting this feature behind a flag to not confuse current users - and maybe allow setting the default in kitty.yml. Totally up you.

What do you think is the best format to save the problem statement in? Markdown would be wonky to look at in the terminal with the math symbols and missing images - however, you could just expect the user to use a markdown viewer. PDF would be able to embed math symbols and images but requires a way to create the PDF file. What are your thoughts?

I found the official Kattis Github organisation, and they have a repository Kattis/problemtools that converts the problem statement to HTML or PDF (via LaTeX).

I haven't looked at the code yet. If you use the API, do they provide access to the problem description as well?

As far as I know, there is no Kattis API. Looking at the web page, it seems to be server rendered - so I assume there is no public HTTP endpoint we can use. The solution might have to be web scraping, which shouldn't be too bad. Maybe have a look at Kattis/problemtools - they might have a way to get the problem statement.

If that's possible and if you think that it would be a useful feature, I could implement it as well.

That would be lovely!

Would that be an acceptable feature or too bloaty?

This depends on how it's implemented. If the final solution requires you to install LaTeX and all sorts of dependencies, then yes - that would be too bloaty. However, if no extra dependencies are needed, and the file size of the executable isn't insane - all good.

avborup avatar Sep 07 '22 16:09 avborup