Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add: star command in shortcuts #601

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

Merged
jdneo merged 3 commits into LeetCode-OpenSource:master from yihong0618:master
Jul 21, 2020
Merged

add: star command in shortcuts #601

jdneo merged 3 commits into LeetCode-OpenSource:master from yihong0618:master
Jul 21, 2020

Conversation

Copy link
Contributor

@yihong0618 yihong0618 commented Jul 19, 2020

@jdneo @zry656565
Support star/unstar in codelen shortcuts/
image

Copy link
Contributor Author

Support #598 #549

Copy link
Member

jdneo commented Jul 20, 2020

Thanks @yihong0618

I would suggest to use $(star-empty) and $(star-full). You can find the style here: https://microsoft.github.io/vscode-codicons/dist/codicon.html

Copy link
Contributor Author

@jdneo
Seems a bit low then the text title(Submit, Test)?
And is it necessary to change heart icon to star icon too?
image

Copy link
Member

jdneo commented Jul 20, 2020

Ok, given the current rendering result, seems using text is better. But I think there is no need to put it as one of the default value

Copy link
Contributor Author

Ok, given the current rendering result, seems using text is better. But I think there is no need to put it as one of the default value

Maybe in setting that user can config it open it or not?

Copy link
Member

jdneo commented Jul 20, 2020

Do you mean using a setting to toggle between text and icon?

Copy link
Contributor Author

Do you mean using a setting to toggle between text and icon?

Forget it, I think for now, keep the text maybe a better way.

Copy link
Member

jdneo commented Jul 20, 2020

I think so too.

package.json Outdated
@@ -621,7 +621,8 @@
"type": "array",
"default": [
"submit",
"test"
"test",
"star"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add this shortcut by default. But please add it in the items, and also documents in readme

yihong0618 and KennyNg-19 reacted with thumbs up emoji
Copy link
Contributor Author

@jdneo Fixed.

README.md Outdated
- `Submit`: Submit your answer to LeetCode.
- `Test`: Test your answer with customized test cases.
- `Star/Unstar`: Star or Unstar the current problem.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: unstar

@@ -629,6 +629,7 @@
"enum": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you by the way add "enumDescriptions" for this setting here? 😄

Copy link
Contributor Author

@yihong0618 yihong0618 Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, and optimize star logic.

Copy link
Member

@jdneo jdneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yihong0618 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@jdneo jdneo jdneo approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.18.0
Development

Successfully merging this pull request may close these issues.

如何将pick one得到的题目加到favorite中? Can you add "favorite" shortcut in .cpp, like submit , test , solution
2 participants

AltStyle によって変換されたページ (->オリジナル) /