pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.3k stars 138 forks source link

Check more places where config folder could be #338

Open tjapro opened 1 year ago

tjapro commented 1 year ago

Have you checked for existing feature requests?

Summary

Today, pulsar put the config folder .pulsar in the home directory.
And the only way to change the location is via a Enviroment Variable.

This solution, even simple, is not good enough in some directory schemas.
For example, in my case i want all config files and folders be inside the ~/.config folder.

If the program searched in other "default" config places would be much easier.

What benefits does this feature provide?

More flexibily to save and organize the config files.

Many people use .config as the default place for their dotfiles (just search "dotfiles" in github).

Any alternatives?

There is a community package - "syncsettings" - but it puts the program configuration inside a private Gist wich is not really invisible.

Other examples:

This will be more compicated, but ...

Other

Function is case: https://github.com/pulsar-edit/pulsar/blob/master/src/main-process/start.js#L137

Called in: https://github.com/pulsar-edit/pulsar/blob/5ff5295f1a3d7be48775859d4f3d60da0b81858b/src/main-process/start.js#L57

Daeraxa commented 1 year ago

We already have a discussion for going further and adhering to the XDG base spec - https://github.com/orgs/pulsar-edit/discussions/68 so it is something we are aware of.