https://github.com/chathuragh/django_command_palette
Command palette to the Django Admin Interface
https://github.com/chathuragh/django_command_palette
command-palette css django django-admin html javascript python
Last synced: about 2 months ago
JSON representation
Command palette to the Django Admin Interface
- Host: GitHub
- URL: https://github.com/chathuragh/django_command_palette
- Owner: ChathuraGH
- Created: 2025-03-31T09:19:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-02T06:11:33.000Z (about 1 year ago)
- Last Synced: 2025-04-02T07:23:27.364Z (about 1 year ago)
- Topics: command-palette, css, django, django-admin, html, javascript, python
- Language: HTML
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django_command_palette
Command palette to the Django Admin Interface




# django_command_palette
# Version : test version 1
- User name : admin
- Password : admin
# Environment
- Django version 3.0.8
# how to
- run the server
- go to index page or `/admin`
- press `Ctrl + k` or press the `#` button
# Available Key Combos
- Complexity : Level of command complexity("normal" or "complex" )
- Normal :- Function on combo
- Complex :- Function on `Enter`
- Availability : Command trigger location("specific page" or "global")
#### Palette manage
| Shortcut Function | Key Combo | Complexity-Availability | Execution method |
|----------------------------------|----------------------------------|--------------------------------------|-----------------------|
| Open the command palette modal | `Ctrl+K` | Normal-Global | On Combo |
| Close the command palette modal | `Esc` | Normal-Global | On Combo |
| Go up in command list | `Up arrow` | Normal-Global | On Combo |
| Go down in command list | `Down arrow` | Normal-Global | On Combo |
#### Navigation
| Shortcut Function | Key Combo | Complexity-Availability | Execution method |
|----------------------------------|----------------------------------|------------------------------------|-----------------------|
| Go to the admin index page | `Ctrl+I` | Normal-Global | On Combo |
| View site / Go to the `/` | `Ctrl+Z` | Normal-Global | On Combo |
| Go to the Logout page | `Ctrl+L` | Normal-Global | On Combo |
| Go to the next page | `Ctrl+B` | Normal-Change list | On Combo |
| Go to the previous page | `Ctrl+V` | Normal-Change list | On Combo |
| Go to the nth page | `Ctrl+X` + page number | Complex-Change list | On `Enter` |
#### Object manage
| Shortcut Function | Key Combo | Complexity-Availability | Execution method |
|----------------------------------|----------------------------------|------------------------------------|-----------------------|
| Add new object | `Alt+A` | Normal-Change list | On Combo |
| Save & Add | `Alt+A` | Normal-Change form | On Combo |
| Save & Editing | `Alt+E` | Normal-Change form | On Combo |
| Save | `Alt+S` | Normal-Change form | On Combo |
| Delete | `Alt+D` | Normal-Change form | On Combo |
| Delete confirmation / Yes | `Alt+Y` | Normal-Change form | On Combo |
| Delete cancel / No | `Alt+N` | Normal-Change form | On Combo |
#### Search
| Shortcut Function | Key Combo | Complexity-Availability | Execution method |
|----------------------------------|----------------------------------|-----------------------------------|-----------------------|
| Search Focus | `Ctrl+/` | Normal-Change list | On Combo |
| Search filter(filter comm list) | `Ctrl+S` | Normal-Global | On Combo |
#### Special
| Shortcut Function | Key Combo | Complexity-Availability | Execution method |
|-----------------------|--------------------------------------------------|----------------------------------------|-----------------------|
| Search(without query) | `Ctrl+K` + "?" + "model" + `Enter` | Complex-Global | On `Enter` |
| Search(with query) | `Ctrl+K` + "?" + "model" + "query" + `Enter` | Complex-Global | On `Enter` |
| Update(without query) | `Ctrl+K` + ">" + "model" + `Enter` | Complex-Global | On `Enter` |
| Update(with query) | `Ctrl+K` + ">" + "model" + "query" + `Enter` | Complex-Global | On `Enter` |
| Delete(without query) | `Ctrl+K` + "<" + "model" + `Enter` | Complex-Global | On `Enter` |
| Delete(with query) | `Ctrl+K` + "<" + "model" + "query" + `Enter` | Complex-Global | On `Enter` |
| Add(without query) | `Ctrl+K` + "+" + "model" + `Enter` | Complex-Global | On `Enter` |
| Add(with query) | `Ctrl+K` + "+" + "model" + "query" + `Enter` | Complex-Global | On `Enter` |
Example :-
```"Ctrl+K" + "?" + "model selection" + "query string" + "Enter"```
- Each command part will be separated by "|" character for eazy recognition and to split a given command. So full command will look like below.
Example look :-
```"Ctrl+K" + "?" + "|" + "model selection" + "|" + "query string" + "Enter"```
Visual appearance :-
```"?" + "|" + "model selection" + "|" + "query string"```
Example appearance :-
```?|Post|hello```
# Note
- No dependency (js, python or django)
- Customisable through `settings.py`