Replies: 2 comments 1 reply
-
There isn’t really a deliberate reasoning behind this, I only documented the behaviour for the records. I don’t feel strongly about the precedence, but I think your reasoning makes sense: i.e.,
Oh, that shouldn’t be and is a bug. The
Feel free to take a look if you are motivated. Just a heads-up: I briefly looked into this, and I’m not sure yet how trivial this is to fix. Most of the config-related logic lives in |
Beta Was this translation helpful? Give feedback.
-
|
This issue is resolved by #398 and will be included in the next release. (No ETA on the release yet, though.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey 👋
I use my trusty
$EDITORalways, but I like to spice it up with some extra params here and there for various files, like turning on some spelling check when creating a Git commit.Basically, my mental model until now was:
$EDITORis the default, and each app may have its specific override if relevant.With Klog, I'd like to
vim +and go straight to the the end of the file (that's what+does). It's really no big deal and I can definitely live without that, but I'm a bit surprised to see that you chose, purposely, to have$EDITORnot quite be the fallback but rather take precedence over whatever is set through Klog'seditorentry in itsconfig.ini.Could you share some insight as to why you went for it this way? Would you be open to changing that? :)
--
On another note, it's a bit curious to have
klog configshoweditor = <empty>(it doesn't literally say<empty>) when one sets both their$EDITORand theeditorinconfig.ini.In reading the (as always, excellent)
--help, I understand that theklog configis indeed only exposing the configuration from theinirather than the "effective" configuration...But that's still leave you scratching your head for a little while when again, both your env's
$EDITORand the ini'seditorare set: you don't get exactly only the content from your config file either, since it gets evicted when it would be superseded in another context for the effective configuration.I feel like something here is off, one way or the other.
--
I've never really toyed with Go and I have to say that I'm somewhat surprised by its syntax, but I'll try to get the lay of the land if you'd be open to changing some of these behaviours: I'd like to start contributing more to your delightfully neat project!
Beta Was this translation helpful? Give feedback.
All reactions