Hi folks,
The proposal to add keyboard shortcuts and command palette in the admin had been accepted as part of GSoC. I need your input to move it forward.
Here’s a summary of previous efforts. Ticket#16521 about keyboard shortcuts was marked as accepted in 2012. A simple patch followed 11 years later, but the author was directed to forum for community discussion. Apparently, there had been slight interest shown and no one opposed the idea. @tom developed an experimental package: django-admin-keyboard-shortcuts
with plans to merge into core. The idea was again presented at different occasions: DjangoCon Talk and recently GSoC.
At this stage I believe there is a general consensus in favor, but the community has yet to decide which shortcuts should be set as default. django-admin-keyboard-shortcuts
has a list of supported shortcuts. I’d encourage you to propose new shortcuts and/or share feedback about existing ones regarding their usability.
We believe one of the main goals is to quickly search model instances from anywhere across admin. If enough community interest is shown, the search could be extended into a full-fledged command palette similar to kbar.
I’d also want to check with @steering_council whether we require DEP for keyboard shortcuts or command palette.
Additionally, we want a combobox widget (supporting pagination and remote data source) for the search. The select2
library being used by existing autocomplete widget in admin meets those requirements, however it is tightly coupled with jQuery. At this stage we wonder if it would be a good idea to continue writing select2+jQuery code, propose a no-jQuery select2 replacement or use vanilla JS. If you could help decide such dependencies early, we could continue working on instance search and begin migrating core (if required) while waiting for additional feedback.
Thanks