Giter Site home page Giter Site logo

Comments (2)

JakeStanger avatar JakeStanger commented on June 2, 2024 1

I've held off this so far for a couple of reasons:

  • Firstly, the general approach I've taken with Ironbar, especially in regards to config, is to be pretty un-opinionated. Any base configuration I provide is going to be different to what a good proportion of users want. This also includes the config file format.
  • Secondly, I don't want to jump the gun. It's still (fairly) early days and adding a default config becomes yet another thing to maintain and consider with each update and any breaking changes.

That said, two more things:

  • The fact that it errors on startup currently is not the intended behaviour. Ironbar should without a config, and each module should work (even if they display nothing) with no configuration other than type. I'd consider any exceptions to that a bug, so I'll get the "File not found" issue sorted as a priority.
  • I do fully understand that for most new users, having something display is a nicer experience than an empty bar you have to set up yourself.

It may be, unless it turns out there's a strong consensus one way or the other, that I'll handle this in multiple phases, so that something is at least displayed when unconfigured.

Short-term, perhaps the answer is to have a very simple default config that's loaded when no file exists. This could just contain the clock module and a label informing you to configure it. Some messages can also be written to the console with details.

Long term I'd like to have some kind of interactive config builder, either through the CLI, or maybe even a UI of its own (we can dream!).

from ironbar.

JakeStanger avatar JakeStanger commented on June 2, 2024 1

The linked PR handles this well enough for now I think - it includes a hard-coded config, so it's not going to get forgotten in any breaking changes etc. It provides a bare minimum (focused + clock) and informs the user it's the default config. Some logging has also been added with a link to the wiki to make this obvious.

from ironbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.