mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71b6cc4d17
This is a basic example of a remappable command specific to a single Component. It could be remapped like so: ```toml [keys.buffer-picker] C-d = "close_buffer_in_buffer_picker" ``` This has some rough edges: * Can we namespace the commands so they don't all have to be very long and specific about which component they work for? * How can we make this work for generics? * We can't define commands that operate on a `Picker<_>` for example. This example only works because we're using a `Picker<BufferMeta>`. * For Pickers and Menus we could use a `Vec<Box<dyn Item>>` and drop the generics but that would lose static dispatch. * Could we separate the part that needs generics into a different struct and have the functions operate on that? |
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
tests | 1 year ago | |
.gitignore | 5 years ago | |
Cargo.toml | 1 year ago | |
build.rs | 2 years ago |