chabou / hyper-autoprofile

Extension for Hyper.app to configure terminal appearance according to current shell prompt
MIT License
37 stars 4 forks source link

Change theme with keystroke? #4

Open dpo opened 6 years ago

dpo commented 6 years ago

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.

chabou commented 6 years ago

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

dpo commented 6 years ago

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.

chabou commented 6 years ago

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

dpo commented 6 years ago

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!

chabou commented 6 years ago

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?