Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix new documents and category shortcuts

Smaug6739387d8bf49b28
diff --git a/frontend/app/components/CommandCenter/index.vue b/frontend/app/components/CommandCenter/index.vue
index 435fe5e7..aab575c7 100644
--- a/frontend/app/components/CommandCenter/index.vue
+++ b/frontend/app/components/CommandCenter/index.vue
@@ -85,10 +85,15 @@ onMounted(() => {
if ((e.ctrlKey || e.metaKey) && e.key === 'k') {
e.preventDefault();
return openSearch();
- } else if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'u') {
+ }
+ if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'u') {
e.preventDefault();
return router.push('/dashboard/cdn');
}
+ if ((e.ctrlKey || e.metaKey) && e.altKey && e.key.toLowerCase() === 'c') {
+ e.preventDefault();
+ return router.push('/dashboard/docs/new');
+ }
if ((e.ctrlKey || e.metaKey) && e.altKey && e.key.toLowerCase() === 'n') {
e.preventDefault();
return useModal().add(new Modal(shallowRef(CreateCategoryModal), { props: { role: 1 } }));
diff --git a/frontend/app/helpers/navigation.ts b/frontend/app/helpers/navigation.ts
index affc210a..5c5348f2 100644
--- a/frontend/app/helpers/navigation.ts
+++ b/frontend/app/helpers/navigation.ts
@@ -72,7 +72,7 @@ export const quickActions: QuickAction[] = [
title: 'New document',
description: 'Create a new document',
icon: 'add_file',
- shortcut: 'Ctrl+N',
+ shortcut: 'Ctrl+Alt+C',
path: '/dashboard/docs/new',
},
{
@@ -80,7 +80,7 @@ export const quickActions: QuickAction[] = [
title: 'New category',
description: 'Create a new category',
icon: 'add_folder',
- shortcut: 'Ctrl+Shift+N',
+ shortcut: 'Ctrl+Alt+N',
path: '/dashboard/categories',
},
{
diff --git a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
index b748d4b5..0bd4b827 100644
--- a/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
+++ b/frontend/app/pages/dashboard/settings/_views/shortcuts.vue
@@ -16,6 +16,10 @@
<span>Open CDN uploader</span>
<span><kbd>Ctrl</kbd> <kbd>U</kbd></span>
</div>
+ <div class="shortcut">
+ <span>Create a new document</span>
+ <span><kbd>Ctrl</kbd> <kbd>Alt</kbd> <kbd>C</kbd></span>
+ </div>
<div class="shortcut">
<span>Create a new category</span>
<span><kbd>Ctrl</kbd> <kbd>Alt</kbd> <kbd>N</kbd></span>