Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Tilde (~) fails to expand in Config File Names #58

Closed
mcandre opened this issue Jul 21, 2015 · 4 comments
Closed

Tilde (~) fails to expand in Config File Names #58

mcandre opened this issue Jul 21, 2015 · 4 comments
Labels

Comments

@mcandre
Copy link

mcandre commented Jul 21, 2015

Please automatically expand tildes (~) in Config File Names to the current user's home directory. E.g., ~/.config/flake8 should expand to /Users/andrew/.config/flake8 for user andrew on Mac OS X.

@badray badray added the bug label Jul 22, 2015
@binarious
Copy link

👍 This is needed for other linter plugins, too. Atom-Beautify has already implemented this: Glavin001/atom-beautify#235

@Arcanemagus
Copy link
Member

There is no reliable cross-platform way to really do this. As setting this is a one time thing the slight inconvenience of having to type a few extra characters isn't really that big of an issue in my opinion.

@binarious the method used there isn't cross-platform.

I'm marking this as closed. If either of you want to submit a PR that implements this feel free but as it stands I see very little point in this.

@mcandre
Copy link
Author

mcandre commented Oct 8, 2015

There is no reliable cross-platform way to really do this.

gsub ~ env.home, or language implementation equivalent

@Arcanemagus
Copy link
Member

@mcandre I'm assuming then that Ruby does all the hard work of figuring out env.home for you?

In any case since Atom itself is only supported on Windows 7 and above most of the broken platforms that make the task of determining the profile folder near impossible aren't an issue here, so something like https://github.com/npm/osenv could easily be used to accomplist this. Again, feel free to submit a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants