Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeking a "new table" setup wizard #2

Open
paladiusdarkhelm opened this issue Sep 16, 2022 · 0 comments
Open

Seeking a "new table" setup wizard #2

paladiusdarkhelm opened this issue Sep 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@paladiusdarkhelm
Copy link

I was thinking about if there was an easy way to set up new tables within the tool, or if that easy way was only to manually build a giant match file. One where you keep copying and pasting the example template and filling it out with a unique regex, piping the args to _core, and adding the name of the txt file or weighted table file in args as well.

Then I realized this may be a good candidate for putting together a "wizard" that:

Draft suggestion for approach:

  1. Remind the user they must first upload their new simple (txt) or weighted (psv) table file into the espanso/tables directory
  2. Asks user to select the file (if UI) or asks for the filename to make sure it can get to it and that it the name input matches
  3. Asks the user if they are setting up a new simple or new weighted table
  4. Asks for a new, unique regex that will be used to call your table
    5a. The " : " should probably be displaced by default since it is needed for the front-end of the command so the user knows they don't have to include it
    5b. It should probably scan/search to make sure it is unique and return for a different input if not
  5. Auto appending all this (including the new table file name) as a new entry to the correct locations in a common .yml file.
  6. Saves the file so it is ready for testing and use in the user's text editor
@saif-ellafi saif-ellafi added the enhancement New feature or request label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants