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

feat(config): Allow empty config files #720

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

a-kenji
Copy link
Contributor

@a-kenji a-kenji commented Sep 14, 2021

Fix #714
Fix #756

Allow empty config and layout files

  • Currently empty files are parsed as yaml documents, since they
    are empty they are invalid yaml files and a deseralization error would
    follow.

    Now we ignore the incorrect yaml on an empty document and treat it as
    an empty yaml document.

    Eg:

    and

    ---
    

    Are now treated equally.

Alternative: Keep treating the files as yaml documents.

Fix zellij-org#714

Allow empty `config` and `layout` files

- Currently empty files are parsed as yaml documents, since they
  are empty they are invalid yaml files and a deseralization error would
  follow.

  Now we ignore the incorrect yaml on an empty document and treat it as
  an empty yaml document.

  Eg:
  ```
  ```
  and
  ```
  ---
  ```

  Are now treated equally.

Alternative: Keep treating the files as `yaml` documents.
@a-kenji a-kenji merged commit d667dc2 into zellij-org:main Oct 1, 2021
@a-kenji a-kenji deleted the feature-empty-config branch June 7, 2022 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant