Feat: Filtering Problem List using local files. #145
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
arduinohatesme/leetcode.nvim!145
Loading…
Reference in a new issue
No description provided.
Delete branch "jessedoka/master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey, just wanted to add this feature, which is basically able to filter the problem list using both text and JSON files.
For example:
list.jsonlist.txtBasic Use:
With additional Filters
Proof that is works.
Screencast from 2024-11-20 22-10-27.webm
(copilot summary below)
New functionality for custom list filtering:
lua/leetcode/cache/problemlist.lua: Addedparse_custom_listfunction to parse custom list files andfilter_by_custom_listfunction to filter problems based on the custom list. Also addedProblemlist.filter_by_filemethod to integrate these functions.Command structure updates:
lua/leetcode/command/arguments.lua: Addedarguments.list_customto define the structure for custom list command arguments, including file and filter options.lua/leetcode/command/init.lua: Addedcmd.custom_listfunction to handle the new custom list command and integrated it into the command list withcmd.commands.custom. [1] [2]Here is neetcode 150 if you want to test it yourself.
neetcode.txt
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.