vim: Add vim counts and vim shortcuts to project_panel
Closes #10930 Closes #11353
Release Notes:
- Adds commands to project_panel
ctrl-uscrolls the project_panel up half of the visible entriesctrl-dscrolls the project_panel down half of the visible entriesz zscrolls current selection to center of windowz tscrolls current selection to top of windowz bscrolls current selection to bottom of window{num} jand{num} know move up and down with a count
Nice, thanks for this!
We should be able to re-use the existing vim::Number actions for this instead of adding a new one. Though, we might need to move the registration of them to the workspace instead of the editor.
I'm also not sure what the difference is between scroll_item_onscreen and scroll_to_item. Do we need to add a new behavior (and if so, can we leave the old one as is?).
@ConradIrwin could you help me get the test_folded_multibuffer_excerpts test case to pass. I think it is because it is not initializing a workspace and since numbers were moved to be registered in the workspace it is no longer working.
Can't wait for this to be GA! 🎉
Closing this for now due to conflicts, though it is something I do want to figure out how to do.
It seems like the crux of the issue is handling the counts, as they are already stored globally, maybe we can just leave the editor actions in addition to the workspace ones?