freetonik / vscode-dnts

dayNightThemeSwitcher: VS Code extension for quick switching between two themes
MIT License
14 stars 10 forks source link

[request] bind a key for theme toggling #7

Closed atnbueno closed 6 years ago

atnbueno commented 6 years ago

I was going to do the modification myself and do a PR, but I see the version in this repository is 0.0.1 while the one in Marketplace is 0.1.0 :-/

For now I'm using Kevin Latusinski's Theme Switcher for VS Code, and while I prefer your theme selection via configuration, that Ctrl+Alt+T is soooooo intuitive :-)

freetonik commented 6 years ago

Done! You can update the extension now. The default keybinding is ctrl+alt+t on Windows and Linux, cmd+alt+t on macOS.

atnbueno commented 6 years ago

Thanks a lot for the fast update :-)

One tiny problem: if the current theme is not either dayNightThemeSwitcher.dayTheme nor dayNightThemeSwitcher.nightTheme, the keybinding does nothing.

I'm not sure what would be the best solution. Perhaps a warning message? An initial offer of theme pairs?

freetonik commented 6 years ago

@gregflynn what do you think (since you've implemented the toggle functionality in the first place)? I think the toggle should work regardless and switch to either day or night theme from any theme.

gregflynn commented 6 years ago

Yep I agree it doing nothing by default was an oversight, and is a poor experience. I'll do two things:

I'll see if I can whip this up later tonight, shouldn't be an involved change