Skip to content

feature request: Improve Auto Detect slumber.yaml #194

Description

@kristopherbullinger

Motivation

If the user wishes to use slumber in a directory where a slumber.yaml file is not present, slumber will fail to start with an error unless the user specifies the location manually. This is inconvenient unless the user happens to be working in the same directory that their slumber.yaml is defined.

Feature Description

Allow slumber to check the current directory as it currently does, but instead of terminating on failing to find the config file in the current directory, check the parent directories in order until the root is reached (upon which slumber terminates) or a slumber.yaml is found.

Prior Art

dotenvy

Note

As the location of the detected config file may be less apparent to the user, I suggest adding a diagnostic message at the bottom of the TUI declaring the location of the slumber.yaml file which was detected, similar to when slumber reloads upon detecting a change to the config file.

[13:33:11] Loaded collection from /user/abcdefghi/slumber.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    qolImprovements that make usage smoother, without introducing new functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions