scopatz / xo

exofrills text editor
http://exofrills.org/
Do What The F*ck You Want To Public License
98 stars 16 forks source link

Change color scheme #16

Open StefanUlbrich opened 7 years ago

StefanUlbrich commented 7 years ago

Hi

how can I change xo's color scheme? On the default Ubuntu terminal (black on white background) I cannot see anything in xo. Second question: which is the meta key? Gnome intercepts the "windows" key.

Best Stefan

scopatz commented 7 years ago

Hi Stefan, META is the Alt key for me with default Ubuntu keymapping settings. (META4 is the windows key.) So you can change the color scheme by using Alt+s and then typing in the color scheme you want to use. A list of possibilities will pop up.

bawr commented 7 years ago

I tried changing the pygments style, opening a .py file for reference, but when I use meta+s, I get a prompt with a list of styles, type one of the listed names, press enter... and nothing changes.

I retried with pretty much all of the names that were listed - is there anything I can do to debug this?

EDIT: changing the colour scheme does work if I specify it in a config file, though.

scopatz commented 7 years ago

xo doesn't refresh the colors until the line needs to be redrawn (yes, this is a bug). So once you change with meta+s, you currently need to move the cursor over the line.

PRs welcome!

susca commented 7 years ago

Hi, is there a way to save the colour scheme, so that the next time I start xo, I don't have to choose it again?

Thanks

scopatz commented 7 years ago

Hi @susca, not yet, but pull requests are welcome!