Comments (4)
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.
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.
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.
cool cool. Thx all.
from nyxt.
Related Issues (20)
- Cannot Load Invader Extension HOT 3
- Odd OOP idiom (parent/child relationship)
- `ffi` focus methods
- Delete `ffi-buffer-make` and `ffi-window-make`
- `ffi-buffer-cookie-policy` and Electron
- Simplify URL display logic
- Fix `global-history` test HOT 1
- nyxt crashes when there are too many tabs HOT 1
- last search engine is not set as default HOT 1
- Refactor URL display on `status-buffer` HOT 1
- `ffi-display-url` may not be needed
- Several implementions of a single URL abstraction HOT 1
- Sites Fail to Load HOT 4
- Delete `define-class` indirection HOT 2
- Help for Building on Asahi Linux HOT 4
- Simplify logic around `search-engine`s HOT 1
- Performance Issues HOT 1
- slot configuration section of document page outdated HOT 1
- Delete variations of `set-url` and rely on return actions instead
- Refactor architecture behind `hide-prompt-buffer`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nyxt.