Giter Site home page Giter Site logo

Comments (4)

aadcg avatar aadcg commented on July 18, 2024 1

I second @jmercouris.

Maybe we could make the "current value" be the value of the slot in a brand new instance of a class. That's not always the same as the default value, since it can be changed with define-configuration, configure-slot or some other configuration methods.

I believe that this may be a slightly different topic. Let's think of an example, say slot nyxt/mode/hint:hints-alphabet. The default value is "ABCDEFGHIJKLMNOPQRSTUVWXYZ". Now say that the user starts Nyxt and sets the slot to "TOMATO". I believe that the default value of said slot (shown in describe-slot) should now be "TOMATO". Unfortunately, as of today, it will continue to show "ABCDEFGHIJKLMNOPQRSTUVWXYZ". I can image that, in practice, this may more difficult to reliably do than it may look like at first sight.

from nyxt.

jmercouris avatar jmercouris commented on July 18, 2024

The current value, for which object? I mean there could be an infinite amount of objects. In some cases it is obvious, like the current buffer object, but what about the ambiguous cases?

from nyxt.

hgluka avatar hgluka commented on July 18, 2024

I have to agree.
I like the idea, but now that I think about it, I don't know how feasible it is.

For example, there are slots like current-zoom-ratio or modes that can be different for each buffer. How do we pick the current value for those slots?
Another issue would be slots for classes like prompt-buffer that aren't always instantiated.

Maybe we could make the "current value" be the value of the slot in a brand new instance of a class. That's not always the same as the default value, since it can be changed with define-configuration, configure-slot or some other configuration methods.

What do you think? @jmercouris

from nyxt.

lansingthomas avatar lansingthomas commented on July 18, 2024

cool cool. Thx all.

from nyxt.

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.