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

chewing-cli should allow me to find my user dictionary #528

Closed
kanru opened this issue May 10, 2024 · 0 comments · Fixed by #531
Closed

chewing-cli should allow me to find my user dictionary #528

kanru opened this issue May 10, 2024 · 0 comments · Fixed by #531
Labels
Milestone

Comments

@kanru
Copy link
Member

kanru commented May 10, 2024

Is your feature request related to a problem? Please describe.

Currently to use chewing-cli to inspect my user dictionary I need to know the path. The path is different on each platform. The tool should be able to find them directly and let me know the path.

Describe the solution you'd like

Make the <PATH> argument optional to chewing-cli info so it prints the default path and dictionary

$ chewing-cli info -u
Path      : /var/home/kanru/.chewing/chewing.dat
Name      : 我的詞庫
Version   : 0.0.0
Copyright : Unknown
License   : Unknown
Software  : chewing 0.7.0-beta.2

$ chewing-cli info -j -u
{
  "path": "var/home/kanru/.chewing/chewing.dat",
  "name": "我的詞庫",
  "version": "0.0.0",
  "copyright": "Unknown",
  "license": "Unknown",
  "software": "chewing 0.7.0-beta.2"
}

Add subcommand export and import to directly import / export user dictionary.

Describe alternatives you've considered

no

Additional context

So that we don't need chewing-editor to edit user dictionary and everyone knows how to edit CSV files.

@kanru kanru added the feature label May 10, 2024
@kanru kanru added this to the v0.8.0 milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant