hyper-autoprofile icon indicating copy to clipboard operation
hyper-autoprofile copied to clipboard

Change theme with keystroke?

Open dpo opened this issue 8 years ago • 5 comments

This looks great. I'm wondering if something similar could be use to change theme altogether in a hyper window, say with a keybinding.

Thanks.

dpo avatar Nov 17 '17 23:11 dpo

I'm not sure to understand what do you need. Can you explain further ?

chabou avatar Nov 19 '17 16:11 chabou

Instead of changing the background of the current window based on a regexp, would it be possible to hit a key combination (say, C-h) and change the theme for the current window? I could have a default theme in ~/.hyper.js, say Solarized Dark, but would like certain windows to use Solarized Light.

dpo avatar Nov 20 '17 14:11 dpo

This plugin let you change only some config properties. It could be possible to add some keymaps to force a profile but this is not exactly what you want I think.

Enabling/Disabling some themes could be really tricky. I think this is not possible at all due to Hyper architecture

chabou avatar Nov 20 '17 14:11 chabou

It could be possible to add some keymaps to force a profile but this is not exactly what you want I think.

It would already be good, I think.

Enabling/Disabling some themes could be really tricky. I think this is not possible at all due to Hyper architecture

I'll ask on the Hyper tracker. Thanks!

dpo avatar Nov 20 '17 20:11 dpo

I don't know how to force a profile nicely. What will be the rules ? You force a profile and later prompt is matching a regexp for another profile. Should profile change ? If yes: what to do if profile is not matched anymore later? If no: how to remove this forced profile?

Do you use prompt pattern matching? Why is this not enough to set your profile automatically?

chabou avatar Nov 21 '17 11:11 chabou