From ac1c32ce47c7cc8e122db44c2c6fb93b38d57cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4f?= Date: Wed, 1 Nov 2023 14:12:03 +0100 Subject: [PATCH] wip --- src-bex/manifest.json | 21 +++ src/components/DrawerRight.vue | 7 +- ...rButton.vue => SidePanelToolbarButton.vue} | 0 src/components/views/OpenTabsView.vue | 178 ++++++++++++++++++ src/components/widgets/SearchWidget2.vue | 22 ++- .../widgets/TabListElementWidget.vue | 147 +++++++-------- src/components/widgets/ToolbarButton.vue | 3 +- src/domain/tabsets/RenameTabset.ts | 2 +- src/layouts/DefaultLayout.vue | 1 - src/layouts/FullPageLayout.vue | 8 +- src/pages/TabsetPage.vue | 2 +- .../sidepanel/SidePanelBookmarksPage.vue | 5 +- .../sidepanel/SidePanelOpenTabsListViewer.vue | 5 +- .../sidepanel/helper/FirstToolbarHelper.vue | 19 +- .../helper/SearchWithTransitionHelper.vue | 2 +- .../SidePanelToolbarTabNavigationHelper.vue | 7 +- src/services/ChromeListeners.ts | 18 ++ src/stores/tabsStore.ts | 15 +- src/stores/uiStore.ts | 2 +- 19 files changed, 350 insertions(+), 114 deletions(-) rename src/components/buttons/{ToolbarButton.vue => SidePanelToolbarButton.vue} (100%) create mode 100644 src/components/views/OpenTabsView.vue diff --git a/src-bex/manifest.json b/src-bex/manifest.json index 0b71362a..ae914049 100644 --- a/src-bex/manifest.json +++ b/src-bex/manifest.json @@ -41,6 +41,27 @@ "default": "Ctrl+B", "mac": "Command+B" } + }, + "search": { + "suggested_key": { + "default": "Ctrl+K", + "mac": "Command+K" + }, + "description": "Open Search Box" + }, + "tabHistoryBack": { + "suggested_key": { + "default": "Alt+Left", + "mac": "Alt+Left" + }, + "description": "Open last open tab" + }, + "tabHistoryForward": { + "suggested_key": { + "default": "Alt+Right", + "mac": "Alt+Right" + }, + "description": "Forward to next tab (if available)" } }, "options_page": "www/index.html#/mainpanel/settings", diff --git a/src/components/DrawerRight.vue b/src/components/DrawerRight.vue index 236ae3e9..7b84a51f 100644 --- a/src/components/DrawerRight.vue +++ b/src/components/DrawerRight.vue @@ -59,7 +59,8 @@
- + + @@ -105,14 +106,12 @@ import TagsListViewer from "components/views/TagsListViewer.vue"; import SidePanelTagsListViewer from "pages/sidepanel/SidePanelTagsListViewer.vue"; import TagListViewer from "components/views/TagListViewer.vue"; import ByDomainList from "components/ByDomainList.vue"; +import OpenTabsView from "components/views/OpenTabsView.vue"; -const router = useRouter() const route = useRoute() -const featureToggles = useSettingsStore() const tabsStore = useTabsStore() const settingsStore = useSettingsStore() -const uiStore = useUiStore() const openTabsCountRatio = ref(0) const tab = ref(useUiStore().rightDrawer.activeTab) diff --git a/src/components/buttons/ToolbarButton.vue b/src/components/buttons/SidePanelToolbarButton.vue similarity index 100% rename from src/components/buttons/ToolbarButton.vue rename to src/components/buttons/SidePanelToolbarButton.vue diff --git a/src/components/views/OpenTabsView.vue b/src/components/views/OpenTabsView.vue new file mode 100644 index 00000000..18a2ed7e --- /dev/null +++ b/src/components/views/OpenTabsView.vue @@ -0,0 +1,178 @@ + + + + diff --git a/src/components/widgets/SearchWidget2.vue b/src/components/widgets/SearchWidget2.vue index 9a092867..b1e1a6bd 100644 --- a/src/components/widgets/SearchWidget2.vue +++ b/src/components/widgets/SearchWidget2.vue @@ -1,7 +1,8 @@