We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, yank-note put all user files in ~/yank-note, but it would be better to follow the XDG specification, see XDG Base Directory Specification.
~/yank-note
There are few files in ~/yank-note, and they can be easily classified.
➜ yank-note ls config.json extensions histories pandoc-reference.docx plugins themes
config.json should go to $XDG_CONFIG_HOME/yank-note (defaults to $HOME/.config/yank-note when the environment variable $XDG_CONFIG_HOME is undefined.)
config.json
$XDG_CONFIG_HOME/yank-note
$HOME/.config/yank-note
$XDG_CONFIG_HOME
And extensions pandoc-reference.docx plugins themes should go to $XDG_DATA_HOME/yank-note, which defaults to $HOME/.local/share/yank-note,
extensions pandoc-reference.docx plugins themes
$XDG_DATA_HOME/yank-note
$HOME/.local/share/yank-note
Finally, histories should go to $XDG_CACHE_HOME/yank-note, which defaults to $HOME/.cache/yank-note.
histories
$XDG_CACHE_HOME/yank-note
$HOME/.cache/yank-note
Only the following lines need to be changed. You can follow https://github.com/rivy/js.xdg-portable,
yn/src/main/constant.ts
Lines 11 to 20 in 4cfd1ac
yn/src/main/server/convert.ts
Line 8 in 4cfd1ac
The text was updated successfully, but these errors were encountered:
No branches or pull requests
background
Currently, yank-note put all user files in
~/yank-note
, but it would be better to follow the XDG specification, see XDG Base Directory Specification.There are few files in
~/yank-note
, and they can be easily classified.config.json
should go to$XDG_CONFIG_HOME/yank-note
(defaults to$HOME/.config/yank-note
when the environment variable$XDG_CONFIG_HOME
is undefined.)And
extensions pandoc-reference.docx plugins themes
should go to$XDG_DATA_HOME/yank-note
, which defaultsto
$HOME/.local/share/yank-note
,Finally,
histories
should go to$XDG_CACHE_HOME/yank-note
, which defaults to$HOME/.cache/yank-note
.suggested solution
Only the following lines need to be changed. You can follow https://github.com/rivy/js.xdg-portable,
yn/src/main/constant.ts
Lines 11 to 20 in 4cfd1ac
yn/src/main/server/convert.ts
Line 8 in 4cfd1ac
The text was updated successfully, but these errors were encountered: