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

Idea: shiny app/function to help identify the theme() command someone is looking for #54

Open
jonocarroll opened this issue Aug 7, 2020 · 8 comments
Assignees

Comments

@jonocarroll
Copy link
Owner

User enters "rotate" and gets a list of theme() commands which match. User extends to "rotate x" and the list refines.

@yonicd
Copy link
Collaborator

yonicd commented Aug 7, 2020

isnt that pretty self contained in how element_* are defined as lists with their own docs?

@jonocarroll
Copy link
Owner Author

I'm thinking (prototyping) a search where a user enters text and gets suggestions for the full call, not just pointers to docs about element_text().

@yonicd
Copy link
Collaborator

yonicd commented Aug 7, 2020

interesting. maybe @jonthegeek would be interested in this. He deals with BERT and that would fit nicely in this type of idea i think.

@jonocarroll
Copy link
Owner Author

I have a prototype I'll push to a branch that does an okay job, but yeah - if anyone wants to have a go at doing some language stuff on suggestions then I'm all for it.

@jonocarroll
Copy link
Owner Author

jonocarroll commented Aug 8, 2020

Prototype: https://github.com/jonocarroll/howdoi

Features:

  • rough text search for {ggeasy} and {ggplot2} commands based on function and arguments (thus better than autocomplete)
  • includes a set of synonyms, so e.g. "smaller font" will suggest easy_all_text_size() and theme(text=??)
  • copy suggestions (selected row)
  • direct link to open an issue in (a) repo with pre-populated template

This could still be improved by some NLP, but for now it does an okay job at suggesting calls. Where it doesn't, the issue creator will (hopefully) give some insight into what's not working.

@jonocarroll
Copy link
Owner Author

Screenshot from 2020-08-08 22-02-15

@jonocarroll
Copy link
Owner Author

jonocarroll commented Aug 8, 2020

TODO:

  • disable various buttons until ready (shinyjs::disable())
  • make look nicer
  • RStudio Addin
  • command-line mode (with argument, otherwise launch shiny)
  • add namespace prefixes (ggeasy::)
  • integrate into {ggeasy}

@yonicd
Copy link
Collaborator

yonicd commented Aug 8, 2020

Looks like a good start. I’ll play around with it this weekend.

@jonocarroll jonocarroll self-assigned this Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

2 participants