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

Suggest to add the file if config file is not found #8

Closed
ColinFay opened this issue Aug 19, 2020 · 1 comment
Closed

Suggest to add the file if config file is not found #8

ColinFay opened this issue Aug 19, 2020 · 1 comment
Assignees
Labels
priority: medium Medium priority status: planned Planning to implement type: new New feature or enhancement

Comments

@ColinFay
Copy link

Hey,

If there is no config file found, {shrtcts} throws an error:

> shrtcts::edit_shortcuts()
Error: Could not find .shrtcts.R or .shrtcts.yaml in /Users/colin/.config or /Users/colin

IMHO it would be more user-friendly to suggest to create this file :)

For ex:

> shrtcts::edit_shortcuts()
No short .shrtcts.R file found, wanna create it? 

1: Yes
2: No
@gadenbuie gadenbuie self-assigned this Aug 19, 2020
@gadenbuie gadenbuie added priority: medium Medium priority status: planned Planning to implement type: new New feature or enhancement labels Aug 19, 2020
@gadenbuie
Copy link
Owner

This is a good idea, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Medium priority status: planned Planning to implement type: new New feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants