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
codemirror: add config options to style selection #5529
Conversation
cc @tgeorgeux for UX input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@tgeorgeux Can you review this PR? need any update please kindly let me know. |
@futurist Sorry to take so long to get on this. First off, thank you for the issue/pull request being organized and easy to read/understand. That's very helpful, but I digress. I like the styling here, I also think it makes sense to also bring those options into the advanced setting editor. @blink1073 do you have thoughts? Given these add-ons have not been previously installed I think it makes sense to give people the option to turn them back off. The relevant files that will need to be updated to include these in the advanced settings editor are: Otherwise looks great. |
Yeah I think making the highlighting configurable is fair. |
@tgeorgeux I think the point is when user switching theme, the selection style should not mess up the theme style? If this is the case, I suggest the default value for these three options should be |
@tgeorgeux The latest commit set all these options |
@futurist I don't mind turning them on by default. What I was addressing with my earlier comment is to add those options to the code mirror tab in the advanced settings editor. See the screenshot: In order to add these options to the advanced settings editor, you will need to build out the relevant schema in these files: Also, CI stuff isn't my specialty but it looks like the appveyor build is breaking. @blink1073 are tests at 100 right now? |
Appveyor has been flaky... |
@tgeorgeux I've pushed new commits, and think below really make sense: |
LGTM, thanks! |
Thank you so much @futurist ! |
Fixes #5528
Below is a demo to use these options:
Screenshots