-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] adding picker
mode
#868
Conversation
I don't think this will work. A picker is a UI component that does not have it's own mode. The commands inside command.rs are all specific to the currently focused buffer and don't operate on selections inside a picker. What we'd need to do is add a separate keymap that's able to map to picker functions here: helix/helix-term/src/ui/picker.rs Lines 319 to 400 in e216e96
We'd need to extract these out. So it would be completely separate from keymap.rs / commands.rs. What are you trying to remap? I don't think these keys are reconfigurable in other editors so if this is for just for a few common remaps it's okay to add them as aliases rather than to make the picker customizable. |
I see, thanks for your estimate! I was actually wondering, how I could get the picker's functions into scope of command or keymap. As OP of #615 I'd prefer Gonna close this PR then and maybe try my luck with #851 instead. |
Attmept to fix #615
(also helpful for #851)
I am trying to add an actual
picker
mode.As I am new to this code base (and a project of this scale as well), may I ask for some guidance if I am on the right track?
Some notes on the progress so far:
there obviously needs to be added an actual
open
command to the 'open as split' binds as well and add the 'filter options'.Any pointers on how to replace the
match key_event {}
inimpl<T: 'static> Component for Picker<T> {}
best?