This is a proof of concept for adding keyboard shortcuts to the Django Admin.
There is no PyPI package and I strongly recommend against using this package as it's very hacky and really just a proof of concept of the types of shortcuts we could have in the core admin. Most of the work needs to happen in core because we'd likely need to add new blocks to the admin template, and would ideally need changes to the templates.
You will need a Django project with the admin enabled. The easiest way is to use https://github.com/knyghty/django-admin-demo
Then clone this repo somewhere and install it in editable mode with pip, e.g.
pip install -e ../django-admin-keyboard-shortcuts
Then add django_admin_keyboard_shortcuts to your INSTALLED_APPS. It must go above the django.contrib.admin app so that the template overrides work.
Now you can hack away.
This project uses ESLint as its JS linter and uses the same configuration as the Django repository. To run it, you'll first need to install dependencies
npm install
and then run
npm run lint
This package was created with Cookiecutter and the knyghty/cookiecutter-django-package project template.