Open bartekpacia opened 3 months ago
Currently there is no logic to take a different default as XDG_CONFIG_HOME
, but this is at least manually configurable via backupdir
(see: options.md)
I'll be happy to contribute this if only I get a buy in from a maintainer:)
Please give it a shot. We're happy about every helping hand.
Somewhere here it's good to start: https://github.com/zyedidia/micro/blob/master/internal/buffer/backup.go#L72-L75
I've submitted a patch (and a link to a Linux test binary) in #3185.
From what I understand, XDG_CONFIG_HOME is for configuration files, like
settings.json
andbindings.json
.However in my case
micro
misuses that directory to place some other autogenerated files in there:I think stuff like
backups
andbuffers
doesn't belong toXDG_DATA_HOME
. Instead they should be in$XDG_STATE_HOME
(or maybe$XDG_DATA_HOME
?).Specifications
Micro version
OS
Terminal
iTerm2 (build 3.5.0beta19)