feat: Add keyboard shortcuts info below terminal with styling

This commit is contained in:
Paul Gauthier (aider) 2025-03-14 10:00:21 -07:00
parent 411e7f86c1
commit 89780c1283
2 changed files with 25 additions and 0 deletions

View file

@ -129,6 +129,29 @@ li.active-marker {
.transcript-item:hover {
background-color: #f0f0f0;
}
/* Keyboard shortcuts styling */
.keyboard-shortcuts {
text-align: center;
font-size: 14px;
color: #666;
margin-top: 10px;
margin-bottom: 20px;
}
.keyboard-shortcuts kbd {
background-color: #f7f7f7;
border: 1px solid #ccc;
border-radius: 3px;
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
color: #333;
display: inline-block;
font-family: monospace;
line-height: 1;
margin: 0 2px;
padding: 3px 5px;
white-space: nowrap;
}
.asciinema-player-theme-aider {
/* Foreground (default text) color */
--term-color-foreground: #444444; /* colour238 */

View file

@ -33,6 +33,8 @@ layout: minimal
</div>
</div>
<div class="keyboard-shortcuts">Keyboard shortcuts: <kbd>Space</kbd> Play/pause, <kbd>f</kbd> Fullscreen, <kbd></kbd><kbd></kbd> ±5s, <kbd>Shift</kbd>+<kbd></kbd><kbd></kbd> ±10%, <kbd>[</kbd><kbd>]</kbd> Previous/next marker</div>
## Commentary
- 0:01 We're going to add a ton of new languages to aider via tree-sitter-language-pack.