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

Theme preview #1782

Open
montoner0 opened this issue Jul 19, 2020 · 5 comments
Open

Theme preview #1782

montoner0 opened this issue Jul 19, 2020 · 5 comments

Comments

@montoner0
Copy link

Description of the problem or steps to reproduce

It would be nice to have some kind of theme preview. Currently it's a real pain to find the one you like.

Specifications

Version: 2.0.6
Commit hash: 60846f5
Compiled on July 06, 2020
OS: Debian 10/Windows 10
Terminal: KiTTY

@zyedidia
Copy link
Owner

zyedidia commented Jul 19, 2020

I'm not exactly sure what you're looking for. You can set the colorschemes in the editor one by one and see previews. Maybe this could be solved by including a caption with the colorscheme name for the images in the carousel on the main website? (https://micro-editor.github.io/) Currently you can open each image and see the theme in the filename, but this isn't very user-friendly.

@montoner0
Copy link
Author

I'm talking about preview when tabbing through themes in editor. Currently you need to apply theme to see a result and when you look through all of them it's not very convenient because you need to tab the list again and again.
Preview on website is nice but it would be much nicer if a user could see colors of his own code/text within his terminal.
Probably such instant preview would be good not only for themes but for any visual option.

@ebrensi
Copy link

ebrensi commented Jul 20, 2020

@zyedidia I made a little Sublime plugin to do exactly that in Sublime.
https://gist.github.com/ebrensi/5209ff45ed094c83cfbb0a14288c982c

I thought to do that with Micro but it is not a priority. I agree that previewing colorschemes is not fast in Micro.

Incidentally I found that when I made it easy in Sublime I ended up wasting time playing around with colorschemes, whereas when it was more trouble I was more likely to set one and stick with it.

Anyway, the intuitive way to do this with Micro would be to save the current colorscheme in a variable when the user opens up the set colorscheme dialog, so that as they tab through different options it actually sets the current colorscheme temporarily, but reverts to the saved one if the user doesn't confirm the change.

@montoner0 I'd be willing to do this but I'm not in a hurry. If you want to do it, the relevant file appears to be infocomplete.go, where the tab options selection happens. And the function that sets colorscheme is defined in colorscheme.go.

@montoner0
Copy link
Author

@ebrensi Sorry, I have no experience with Go at all.

@ebrensi
Copy link

ebrensi commented Jul 21, 2020

@montoner0 haha me neither. But it can't be that hard, can it? I'll look into it at some point.

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