Skip to content

Add Category Filter (such as Algorithm) #356

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

Open
isee15 opened this issue Jun 27, 2019 · 4 comments
Open

Add Category Filter (such as Algorithm) #356

isee15 opened this issue Jun 27, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@isee15
Copy link

isee15 commented Jun 27, 2019

🚀 Feature Proposal

https://leetcode.com/problemset/algorithms/
On leetcode, there are some category. such as algorithm,oo,database,shell
Add filter to classify

@jdneo jdneo added the enhancement New feature or request label Jun 27, 2019
@isee15
Copy link
Author

isee15 commented Jun 27, 2019

There is a possible modification.
Major is the two files and listProblems reference.
In package.json add config
"leetcode.category": { "type": "string", "enum": [ "algorithms", "database", "shell" ], "scope": "application", "description": "problemset category" },

And in leetCodeExecutor.js add -t param to leetcode-cli
listProblems(showLocked) { return __awaiter(this, void 0, void 0, function* () { return yield this.executeCommandEx(this.nodeExecutable, showLocked ? [yield this.getLeetCodeBinaryPath(), "list", "-t", "algorithms"] : [yield this.getLeetCodeBinaryPath(), "list", "-q", "L", "-t", "algorithms"]); }); }

@shahidul-brur
Copy link

There is a possible modification.
Major is the two files and listProblems reference.
In package.json add config
"leetcode.category": { "type": "string", "enum": [ "algorithms", "database", "shell" ], "scope": "application", "description": "problemset category" },

And in leetCodeExecutor.js add -t param to leetcode-cli
listProblems(showLocked) { return __awaiter(this, void 0, void 0, function* () { return yield this.executeCommandEx(this.nodeExecutable, showLocked ? [yield this.getLeetCodeBinaryPath(), "list", "-t", "algorithms"] : [yield this.getLeetCodeBinaryPath(), "list", "-q", "L", "-t", "algorithms"]); }); }

I did what you have said, but it doesn't work. After the modification, I still can't see the problemset category.

@isee15
Copy link
Author

isee15 commented Jul 12, 2019

There is a possible modification.
Major is the two files and listProblems reference.
In package.json add config
"leetcode.category": { "type": "string", "enum": [ "algorithms", "database", "shell" ], "scope": "application", "description": "problemset category" },
And in leetCodeExecutor.js add -t param to leetcode-cli
listProblems(showLocked) { return __awaiter(this, void 0, void 0, function* () { return yield this.executeCommandEx(this.nodeExecutable, showLocked ? [yield this.getLeetCodeBinaryPath(), "list", "-t", "algorithms"] : [yield this.getLeetCodeBinaryPath(), "list", "-q", "L", "-t", "algorithms"]); }); }

I did what you have said, but it doesn't work. After the modification, I still can't see the problemset category.

The modification is a global filter. not show in UI tree.

@wangyx233
Copy link

According to this method, ["algorithms", "database", "shell"] actually can be filtered, but 'leetcode-hot-100', '剑指Offer'...those problemsets can't work correctly.
Any suggestions can solve it?

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

No branches or pull requests

4 participants