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

Config file ignored on Windows #77

Closed
zQueal opened this issue Dec 25, 2021 · 7 comments
Closed

Config file ignored on Windows #77

zQueal opened this issue Dec 25, 2021 · 7 comments

Comments

@zQueal
Copy link

zQueal commented Dec 25, 2021

~/.config
❯ cat fm.yml
settings:
  borderless: true
  enable_logging: false
  enable_mousewheel: true
  pretty_markdown: true
  show_icons: false

Config is not loaded. Borders are still enabled, icons are enabled, etc.

@mistakenelf
Copy link
Owner

To be honest I have not tested in windows. Will take a look

@mistakenelf
Copy link
Owner

@zQueal is this on WSL in windows or are you running this actually inside windows?

@zQueal
Copy link
Author

zQueal commented Jan 6, 2022

No, this is not in WSL. It's directly within the Windows terminal. I'm wondering if, under normal windows, the program doesn't look in %AppData%/fm.yml instead? (it doesn't)

A simple fix for this could be a --config flag which forces fm to use a specific configuration file.

@mistakenelf
Copy link
Owner

Alright I believe I have a solution. So on windows I wont create the config in ~/.config/fm it will just get created in the home directory which would be C:\Users\yourUserName\fm.yml in which you should be able to make changes and see them reflected in fm. As a side note, I am adding the ability to reload the config in app through the key command rc. Will cut a release later on today for you to try

@mistakenelf
Copy link
Owner

@zQueal released 0.12.0, let me know if that works for you

@zQueal
Copy link
Author

zQueal commented Jan 7, 2022

Working perfectly! Thanks for the patch!

@zQueal zQueal closed this as completed Jan 7, 2022
@mistakenelf
Copy link
Owner

Excellent, glad to hear it!

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

No branches or pull requests

2 participants