Micro: Theme preview

Created on 19 Jul 2020  路  5Comments  路  Source: zyedidia/micro

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

Most helpful comment

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.

All 5 comments

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.

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.

@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.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

handicraftsman picture handicraftsman  路  4Comments

Bigguy34 picture Bigguy34  路  3Comments

Rbagman picture Rbagman  路  4Comments

ns-cweber picture ns-cweber  路  4Comments

GeigerCounter picture GeigerCounter  路  3Comments