Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add a recent list #68

Open
HakonHarnes opened this issue Mar 5, 2024 · 4 comments
Open

Feature request: Add a recent list #68

HakonHarnes opened this issue Mar 5, 2024 · 4 comments

Comments

@HakonHarnes
Copy link
Contributor

Description

I often find myself revisiting leetcode problems to redo them. Having a list of recent leetcode problems that I have opened (i.e. a history of problems) would be convenient. The list should be sorted in most-recent order.

Proposed solution

This could be implemented by creating a file which keeps track of recently opened leetcode problems. The feature could be implemented as:

  1. Leet recent command with an entry in Menu -> Problems -> Recent
  2. Leet history command with an entry in Menu -> Problems -> History

Alternatively, a suitable Leetcode API endpoint could be used, if it exists.

@yangrq1018
Copy link

I felt like history functionality is a good idea. By the way, the current implementation overwrites former work regardless of whether you've submitted it or not. The Leet history thing should kind of restore previous work in
some way.

@kawre
Copy link
Owner

kawre commented Mar 9, 2024

Is what you are looking for? Also, what would be the condition to add a question to recent list? Right now, it only gets added if the question was run, since adding questions only if they were opened would flood the list with useless data rather quickly, I guess.

@HakonHarnes
Copy link
Contributor Author

Exactly what I'm looking for. Thanks!

Right now, it only gets added if the question was run, since adding questions only if they were opened would flood the list with useless data rather quickly, I guess.

Seems like the best approach!

@HakonHarnes
Copy link
Contributor Author

Realized the PR hasn't been merged yet. Re-opening the issue until then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants