feat: add comment keybind navigation

This commit is contained in:
James Xylight committed 2025-08-07 21:21:23 -07:00
1 parent 0ca8f7474e
commit 7e2e7c513c
10 files changed
+152 -52

No files matched your search

+60 -15
View File
@@ -471,22 +471,67 @@
{#snippet description()}
{$t('settings.app.keybinds.description')}
{/snippet}
<div class="flex flex-col my-2">
<Expandable>
{#snippet title()}
{$t('content.posts')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.post) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</div>
</Setting>
<li>
<Expandable>
{#snippet title()}
{$t('nav.commands.feeds')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.lists) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('content.posts')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.posts) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('content.comments')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.comments) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
<li>
<Expandable>
{#snippet title()}
{$t('nav.commands.prompt')}
{/snippet}
<CommonList depth={2}>
{#each Object.entries(settings.keybinds.commandPalette) as [key, value] (key)}
<li class="flex items-center justify-between gap-2 secondary">
<div class="capitalize font-medium">{key}</div>
<TextInput bind:value={value.key} size="sm" class="w-24" />
</li>
{/each}
</CommonList>
</Expandable>
</li>
</Section>
<Section id="embeds" title={$t('settings.embeds.title')}>