Antonio Yang
yanganto@github
A total Rust solution ............
Tig
GitUI
pub struct App {
...
key_config: &'static KeyConfig,
...
}
At first, I do this, and try to make the config static but lazy loaded when the program loaded
pub struct App<'a> {
...
key_config: &'a KeyConfig,
...
}
At first, I do this, and change over 30+ files with a lot of lifetimes annotation and conflict with all other feature branch at that time, because I do not want to use garbage collection
pub struct App {
...
key_config: SharedKeyConfig;
...
}
// SharedKeyConfig = Rc<KeyConfig>;
Yay, I think this can be merged
Hints ?!
All these are hard coding :(
key_config: &'static KeyConfig,
key_config: &'a KeyConfig,
key_config: Rc<KeyConfig>;,
These are hard coding
But people truly need this?
Yes, and also enhance the
completeness of the key binds feature
So this should be done.
So I make a talk on COSCUP 2020 in Taiwan,
and point out the issue and hope somebody will be interested on this.
Because extrawurst (author) is not a vim user,
this label "wonfix" appear in mid of August 2020
So I just try to implement this with myself,
and willing to take suggestions
It is cool and fun !