alacritty-themes icon indicating copy to clipboard operation
alacritty-themes copied to clipboard

Select currently applied theme in the prompt

Open arunvelsriram opened this issue 3 years ago • 3 comments

Related issue: #5

  • Refactoring: extracted reusable functions/constants to a common place
  • Upgraded inquirer-autocomplete-prompt to v1.2.0 as it had the feature to select a default value
  • After applying the theme, save the theme name to <alacritty-config-dir>/.current-theme
  • Get the current theme name from <alacritty-config-dir>/.current-theme file and select it in the prompt by default
Screenshot 2020-10-18 at 1 20 07 AM

(I have tested these changes in Mac OS only)

arunvelsriram avatar Oct 17 '20 19:10 arunvelsriram

@rajasegar I have updated the code to use value of name in the colors configuration. However we will have to add name to all themes.

What should be the value of name in the theme yamls?

arunvelsriram avatar Oct 23 '20 15:10 arunvelsriram

It will be the name of the file

rajasegar-c avatar Oct 23 '20 16:10 rajasegar-c

@rajasegar I have set the name to theme filename for all themes.

I couldn't make convert.js script work. Its introducing a lot of changes and am not sure if its required or not. So I updated the name using another script (one-off script I wrote).

arunvelsriram avatar Oct 25 '20 17:10 arunvelsriram