Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: updated keyboard shortcuts

liyasthomase31dc6e08dab
diff --git a/packages/hoppscotch-app/helpers/actions.ts b/packages/hoppscotch-app/helpers/actions.ts
index 329e54e6f..1f377a0ec 100644
--- a/packages/hoppscotch-app/helpers/actions.ts
+++ b/packages/hoppscotch-app/helpers/actions.ts
@@ -27,6 +27,7 @@ export type HoppAction =
| "navigation.jump.realtime" // Jump to realtime page
| "navigation.jump.documentation" // Jump to documentation page
| "navigation.jump.settings" // Jump to settings page
+ | "navigation.jump.profile" // Jump to profile page
type BoundActionList = {
// eslint-disable-next-line no-unused-vars
diff --git a/packages/hoppscotch-app/helpers/shortcuts.js b/packages/hoppscotch-app/helpers/shortcuts.js
index 8cc81ea8b..2a41c95ca 100644
--- a/packages/hoppscotch-app/helpers/shortcuts.js
+++ b/packages/hoppscotch-app/helpers/shortcuts.js
@@ -102,6 +102,10 @@ export default [
keys: [getPlatformAlternateKey(), "S"],
label: "shortcut.navigation.settings",
},
+ {
+ keys: [getPlatformAlternateKey(), "P"],
+ label: "shortcut.navigation.profile",
+ },
],
},
{
@@ -166,6 +170,12 @@ export const spotlight = [
action: "navigation.jump.settings",
icon: "arrow-right",
},
+ {
+ keys: [getPlatformAlternateKey(), "P"],
+ label: "shortcut.navigation.profile",
+ action: "navigation.jump.profile",
+ icon: "arrow-right",
+ },
],
},
{
@@ -256,6 +266,13 @@ export const fuse = [
icon: "arrow-right",
tags: ["settings", "jump", "page", "navigation", "account", "theme", "go"],
},
+ {
+ keys: [getPlatformAlternateKey(), "P"],
+ label: "shortcut.navigation.profile",
+ action: "navigation.jump.profile",
+ icon: "arrow-right",
+ tags: ["profile", "jump", "page", "navigation", "account", "theme", "go"],
+ },
{
keys: [getPlatformSpecialKey(), "M"],
label: "shortcut.miscellaneous.invite",
diff --git a/packages/hoppscotch-app/layouts/default.vue b/packages/hoppscotch-app/layouts/default.vue
index 078f17663..72e8460da 100644
--- a/packages/hoppscotch-app/layouts/default.vue
+++ b/packages/hoppscotch-app/layouts/default.vue
@@ -124,6 +124,9 @@ function defineJumpActions() {
defineActionHandler("navigation.jump.settings", () => {
router.push({ path: localePath("/settings") })
})
+ defineActionHandler("navigation.jump.profile", () => {
+ router.push({ path: localePath("/profile") })
+ })
}
export default defineComponent({
diff --git a/packages/hoppscotch-app/locales/af.json b/packages/hoppscotch-app/locales/af.json
index 0aeb8bd53..a078fe8f1 100644
--- a/packages/hoppscotch-app/locales/af.json
+++ b/packages/hoppscotch-app/locales/af.json
@@ -400,6 +400,7 @@
"documentation": "Gaan na die dokumentasiebladsy",
"forward": "Gaan vorentoe na die volgende bladsy",
"graphql": "Gaan na die GraphQL -bladsy",
+ "profile": "Go to Profile page",
"realtime": "Gaan na Realtime -bladsy",
"rest": "Gaan na die REST -bladsy",
"settings": "Gaan na die instellingsbladsy",
diff --git a/packages/hoppscotch-app/locales/ar.json b/packages/hoppscotch-app/locales/ar.json
index 40bfb34c6..b1d81f345 100644
--- a/packages/hoppscotch-app/locales/ar.json
+++ b/packages/hoppscotch-app/locales/ar.json
@@ -400,6 +400,7 @@
"documentation": "انتقل إلى صفحة التوثيق",
"forward": "انتقل إلى الصفحة التالية",
"graphql": "انتقل إلى صفحة GraphQL",
+ "profile": "Go to Profile page",
"realtime": "انتقل إلى صفحة الوقت الفعلي",
"rest": "انتقل إلى صفحة REST",
"settings": "انتقل إلى صفحة الإعدادات",
diff --git a/packages/hoppscotch-app/locales/ca.json b/packages/hoppscotch-app/locales/ca.json
index ead393b82..8521967f5 100644
--- a/packages/hoppscotch-app/locales/ca.json
+++ b/packages/hoppscotch-app/locales/ca.json
@@ -400,6 +400,7 @@
"documentation": "Aneu a la pàgina Documentació",
"forward": "Aneu a la pàgina següent",
"graphql": "Aneu a la pàgina GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Aneu a la pàgina en temps real",
"rest": "Aneu a la pàgina REST",
"settings": "Aneu a la pàgina Configuració",
diff --git a/packages/hoppscotch-app/locales/cn.json b/packages/hoppscotch-app/locales/cn.json
index cfe095073..371c5577f 100644
--- a/packages/hoppscotch-app/locales/cn.json
+++ b/packages/hoppscotch-app/locales/cn.json
@@ -400,6 +400,7 @@
"documentation": "前往文档页面",
"forward": "前往下一页面",
"graphql": "前往 GraphQL 页面",
+ "profile": "Go to Profile page",
"realtime": "前往实时页面",
"rest": "前往 REST 页面",
"settings": "前往设置页面",
diff --git a/packages/hoppscotch-app/locales/cs.json b/packages/hoppscotch-app/locales/cs.json
index 4a5776683..7f4fc6965 100644
--- a/packages/hoppscotch-app/locales/cs.json
+++ b/packages/hoppscotch-app/locales/cs.json
@@ -400,6 +400,7 @@
"documentation": "Přejděte na stránku dokumentace",
"forward": "Přejít na další stránku",
"graphql": "Přejděte na stránku GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Přejít na stránku v reálném čase",
"rest": "Přejděte na stránku REST",
"settings": "Přejděte na stránku Nastavení",
diff --git a/packages/hoppscotch-app/locales/da.json b/packages/hoppscotch-app/locales/da.json
index 00c3ed3b3..e7312242d 100644
--- a/packages/hoppscotch-app/locales/da.json
+++ b/packages/hoppscotch-app/locales/da.json
@@ -400,6 +400,7 @@
"documentation": "Gå til siden Dokumentation",
"forward": "Gå videre til næste side",
"graphql": "Gå til GraphQL -siden",
+ "profile": "Go to Profile page",
"realtime": "Gå til siden Realtid",
"rest": "Gå til REST side",
"settings": "Gå til siden Indstillinger",
diff --git a/packages/hoppscotch-app/locales/de.json b/packages/hoppscotch-app/locales/de.json
index 5ff5f178a..dafad90eb 100644
--- a/packages/hoppscotch-app/locales/de.json
+++ b/packages/hoppscotch-app/locales/de.json
@@ -400,6 +400,7 @@
"documentation": "Zur Dokumentationsseite gehen",
"forward": "Weiter zur nächsten Seite",
"graphql": "Gehen Sie zur GraphQL-Seite",
+ "profile": "Go to Profile page",
"realtime": "Gehen Sie zur Echtzeit-Seite",
"rest": "Zur REST-Seite gehen",
"settings": "Gehen Sie zur Seite Einstellungen",
diff --git a/packages/hoppscotch-app/locales/el.json b/packages/hoppscotch-app/locales/el.json
index b954df7b5..123e1ba3e 100644
--- a/packages/hoppscotch-app/locales/el.json
+++ b/packages/hoppscotch-app/locales/el.json
@@ -400,6 +400,7 @@
"documentation": "Μεταβείτε στη σελίδα Τεκμηρίωση",
"forward": "Προχωρήστε στην επόμενη σελίδα",
"graphql": "Μεταβείτε στη σελίδα GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Μεταβείτε στη σελίδα σε πραγματικό χρόνο",
"rest": "Μεταβείτε στη σελίδα REST",
"settings": "Μεταβείτε στη σελίδα Ρυθμίσεις",
diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.json
index 5ef6d72dd..25f6d3861 100644
--- a/packages/hoppscotch-app/locales/en.json
+++ b/packages/hoppscotch-app/locales/en.json
@@ -400,6 +400,7 @@
"documentation": "Go to Documentation page",
"forward": "Go forward to next page",
"graphql": "Go to GraphQL page",
+ "profile": "Go to Profile page",
"realtime": "Go to Realtime page",
"rest": "Go to REST page",
"settings": "Go to Settings page",
diff --git a/packages/hoppscotch-app/locales/es.json b/packages/hoppscotch-app/locales/es.json
index 4c98905bf..cb7c0471b 100644
--- a/packages/hoppscotch-app/locales/es.json
+++ b/packages/hoppscotch-app/locales/es.json
@@ -400,6 +400,7 @@
"documentation": "Ir a la página de documentación",
"forward": "Avanzar a la siguiente página",
"graphql": "Ir a la página GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Ir a la página en tiempo real",
"rest": "Ir a la página REST",
"settings": "Ir a la página de configuración",
diff --git a/packages/hoppscotch-app/locales/fi.json b/packages/hoppscotch-app/locales/fi.json
index ae3288694..8a6e6f9c4 100644
--- a/packages/hoppscotch-app/locales/fi.json
+++ b/packages/hoppscotch-app/locales/fi.json
@@ -400,6 +400,7 @@
"documentation": "Siirry dokumentaatiosivulle",
"forward": "Siirry seuraavalle sivulle",
"graphql": "Siirry GraphQL -sivulle",
+ "profile": "Go to Profile page",
"realtime": "Siirry Realtime -sivulle",
"rest": "Siirry REST -sivulle",
"settings": "Siirry Asetukset -sivulle",
diff --git a/packages/hoppscotch-app/locales/fr.json b/packages/hoppscotch-app/locales/fr.json
index 483a895bc..832950e74 100644
--- a/packages/hoppscotch-app/locales/fr.json
+++ b/packages/hoppscotch-app/locales/fr.json
@@ -400,6 +400,7 @@
"documentation": "Aller à la page Documentation",
"forward": "Aller à la page suivante",
"graphql": "Aller à la page GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Aller à la page Temps réel",
"rest": "Aller à la page REST",
"settings": "Aller à la page Paramètres",
diff --git a/packages/hoppscotch-app/locales/he.json b/packages/hoppscotch-app/locales/he.json
index 4d2bf6d56..a87aa2a42 100644
--- a/packages/hoppscotch-app/locales/he.json
+++ b/packages/hoppscotch-app/locales/he.json
@@ -400,6 +400,7 @@
"documentation": "עבור לדף תיעוד",
"forward": "המשך לדף הבא",
"graphql": "עבור לדף GraphQL",
+ "profile": "Go to Profile page",
"realtime": "עבור לדף בזמן אמת",
"rest": "עבור לדף REST",
"settings": "עבור אל דף ההגדרות",
diff --git a/packages/hoppscotch-app/locales/hu.json b/packages/hoppscotch-app/locales/hu.json
index 38388fd05..b1ca5168a 100644
--- a/packages/hoppscotch-app/locales/hu.json
+++ b/packages/hoppscotch-app/locales/hu.json
@@ -400,6 +400,7 @@
"documentation": "Lépjen a Dokumentáció oldalra",
"forward": "Ugrás a következő oldalra",
"graphql": "Lépjen a GraphQL oldalra",
+ "profile": "Go to Profile page",
"realtime": "Lépjen a Valós idejű oldalra",
"rest": "Lépjen a REST oldalra",
"settings": "Lépjen a Beállítások oldalra",
diff --git a/packages/hoppscotch-app/locales/it.json b/packages/hoppscotch-app/locales/it.json
index 0ca559127..93d58d1a8 100644
--- a/packages/hoppscotch-app/locales/it.json
+++ b/packages/hoppscotch-app/locales/it.json
@@ -400,6 +400,7 @@
"documentation": "Vai alla pagina della documentazione",
"forward": "Vai alla pagina successiva",
"graphql": "Vai alla pagina GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Vai alla pagina Real Time",
"rest": "Vai alla pagina REST",
"settings": "Vai alla pagina Impostazioni",
diff --git a/packages/hoppscotch-app/locales/ja.json b/packages/hoppscotch-app/locales/ja.json
index dc9a7dcf1..a4b7744e9 100644
--- a/packages/hoppscotch-app/locales/ja.json
+++ b/packages/hoppscotch-app/locales/ja.json
@@ -400,6 +400,7 @@
"documentation": "ドキュメントページに移動",
"forward": "次のページに進む",
"graphql": "GraphQLページに移動します",
+ "profile": "Go to Profile page",
"realtime": "リアルタイムページに移動",
"rest": "RESTページに移動します",
"settings": "設定ページに移動します",
diff --git a/packages/hoppscotch-app/locales/ko.json b/packages/hoppscotch-app/locales/ko.json
index c5c346385..6cb72d9f4 100644
--- a/packages/hoppscotch-app/locales/ko.json
+++ b/packages/hoppscotch-app/locales/ko.json
@@ -400,6 +400,7 @@
"documentation": "문서 페이지로 이동",
"forward": "다음 페이지로 이동",
"graphql": "GraphQL 페이지로 이동",
+ "profile": "Go to Profile page",
"realtime": "실시간 페이지로 이동",
"rest": "REST 페이지로 이동",
"settings": "설정 페이지로 이동",
diff --git a/packages/hoppscotch-app/locales/nl.json b/packages/hoppscotch-app/locales/nl.json
index c261ade00..f671bf18e 100644
--- a/packages/hoppscotch-app/locales/nl.json
+++ b/packages/hoppscotch-app/locales/nl.json
@@ -400,6 +400,7 @@
"documentation": "Ga naar de documentatiepagina",
"forward": "Ga verder naar de volgende pagina",
"graphql": "Ga naar de GraphQL-pagina",
+ "profile": "Go to Profile page",
"realtime": "Ga naar de Realtime-pagina",
"rest": "Ga naar de REST-pagina",
"settings": "Ga naar de pagina Instellingen",
diff --git a/packages/hoppscotch-app/locales/no.json b/packages/hoppscotch-app/locales/no.json
index 4de3808dc..57e85e2b0 100644
--- a/packages/hoppscotch-app/locales/no.json
+++ b/packages/hoppscotch-app/locales/no.json
@@ -400,6 +400,7 @@
"documentation": "Gå til Dokumentasjonsside",
"forward": "Gå videre til neste side",
"graphql": "Gå til GraphQL-siden",
+ "profile": "Go to Profile page",
"realtime": "Gå til sanntid-siden",
"rest": "Gå til REST-siden",
"settings": "Gå til Innstillinger-siden",
diff --git a/packages/hoppscotch-app/locales/pl.json b/packages/hoppscotch-app/locales/pl.json
index aa05d7789..28e137951 100644
--- a/packages/hoppscotch-app/locales/pl.json
+++ b/packages/hoppscotch-app/locales/pl.json
@@ -400,6 +400,7 @@
"documentation": "Przejdź do strony dokumentacji",
"forward": "Przejdź do następnej strony",
"graphql": "Przejdź do strony GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Przejdź do strony Realtime",
"rest": "Przejdź do strony REST",
"settings": "Przejdź do strony Ustawienia",
diff --git a/packages/hoppscotch-app/locales/pt-br.json b/packages/hoppscotch-app/locales/pt-br.json
index 00136b411..ed840e153 100644
--- a/packages/hoppscotch-app/locales/pt-br.json
+++ b/packages/hoppscotch-app/locales/pt-br.json
@@ -400,6 +400,7 @@
"documentation": "Vá para a página de documentação",
"forward": "Avance para a próxima página",
"graphql": "Vá para a página GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Vá para a página em tempo real",
"rest": "Vá para a página REST",
"settings": "Vá para a página de configurações",
diff --git a/packages/hoppscotch-app/locales/pt.json b/packages/hoppscotch-app/locales/pt.json
index 00136b411..ed840e153 100644
--- a/packages/hoppscotch-app/locales/pt.json
+++ b/packages/hoppscotch-app/locales/pt.json
@@ -400,6 +400,7 @@
"documentation": "Vá para a página de documentação",
"forward": "Avance para a próxima página",
"graphql": "Vá para a página GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Vá para a página em tempo real",
"rest": "Vá para a página REST",
"settings": "Vá para a página de configurações",
diff --git a/packages/hoppscotch-app/locales/ro.json b/packages/hoppscotch-app/locales/ro.json
index 1cc8d4d5c..15e0a4724 100644
--- a/packages/hoppscotch-app/locales/ro.json
+++ b/packages/hoppscotch-app/locales/ro.json
@@ -400,6 +400,7 @@
"documentation": "Accesați pagina Documentație",
"forward": "Mergeți la pagina următoare",
"graphql": "Accesați pagina GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Accesați pagina în timp real",
"rest": "Accesați pagina REST",
"settings": "Accesați pagina Setări",
diff --git a/packages/hoppscotch-app/locales/ru.json b/packages/hoppscotch-app/locales/ru.json
index 87931e58c..3ef20acd6 100644
--- a/packages/hoppscotch-app/locales/ru.json
+++ b/packages/hoppscotch-app/locales/ru.json
@@ -400,6 +400,7 @@
"documentation": "Перейти на страницу документации",
"forward": "Перейти на следующую страницу",
"graphql": "Перейти на страницу GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Перейти на страницу в реальном времени",
"rest": "Перейти на страницу REST",
"settings": "Перейти на страницу настроек",
diff --git a/packages/hoppscotch-app/locales/sr.json b/packages/hoppscotch-app/locales/sr.json
index 6d2758670..3cbd817f8 100644
--- a/packages/hoppscotch-app/locales/sr.json
+++ b/packages/hoppscotch-app/locales/sr.json
@@ -400,6 +400,7 @@
"documentation": "Идите на страницу Документација",
"forward": "Идите на следећу страницу",
"graphql": "Идите на страницу ГрапхКЛ",
+ "profile": "Go to Profile page",
"realtime": "Идите на страницу у реалном времену",
"rest": "Идите на страницу REST",
"settings": "Идите на страницу Подешавања",
diff --git a/packages/hoppscotch-app/locales/sv.json b/packages/hoppscotch-app/locales/sv.json
index 08e69a808..a73cc72f6 100644
--- a/packages/hoppscotch-app/locales/sv.json
+++ b/packages/hoppscotch-app/locales/sv.json
@@ -397,6 +397,7 @@
"documentation": "Gå till dokumentationssidan",
"forward": "Gå vidare till nästa sida",
"graphql": "Gå till GraphQL -sidan",
+ "profile": "Go to Profile page",
"realtime": "Gå till realtidssidan",
"rest": "Gå till REST -sidan",
"settings": "Gå till sidan Inställningar",
diff --git a/packages/hoppscotch-app/locales/tr.json b/packages/hoppscotch-app/locales/tr.json
index a3e8b99f9..82456e14c 100644
--- a/packages/hoppscotch-app/locales/tr.json
+++ b/packages/hoppscotch-app/locales/tr.json
@@ -400,6 +400,7 @@
"documentation": "Belgeler sayfasına git",
"forward": "Sonraki sayfaya ilerle",
"graphql": "GraphQL sayfasına git",
+ "profile": "Go to Profile page",
"realtime": "Gerçek Zamanlı sayfasına git",
"rest": "REST sayfasına git",
"settings": "Ayarlar sayfasına git",
diff --git a/packages/hoppscotch-app/locales/tw.json b/packages/hoppscotch-app/locales/tw.json
index 324898bfd..3a4976ed8 100644
--- a/packages/hoppscotch-app/locales/tw.json
+++ b/packages/hoppscotch-app/locales/tw.json
@@ -397,6 +397,7 @@
"documentation": "前往文件頁面",
"forward": "前往下一頁面",
"graphql": "前往 GraphQL 頁面",
+ "profile": "Go to Profile page",
"realtime": "前往實時頁面",
"rest": "前往 REST 頁面",
"settings": "前往設定頁面",
diff --git a/packages/hoppscotch-app/locales/uk.json b/packages/hoppscotch-app/locales/uk.json
index 2a87251ec..835e6623a 100644
--- a/packages/hoppscotch-app/locales/uk.json
+++ b/packages/hoppscotch-app/locales/uk.json
@@ -400,6 +400,7 @@
"documentation": "Перейдіть на сторінку Документація",
"forward": "Перейти до наступної сторінки",
"graphql": "Перейдіть на сторінку GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Перейдіть на сторінку реального часу",
"rest": "Перейдіть на сторінку REST",
"settings": "Перейдіть на сторінку Налаштування",
diff --git a/packages/hoppscotch-app/locales/vi.json b/packages/hoppscotch-app/locales/vi.json
index b943615ee..bd7d6d3a4 100644
--- a/packages/hoppscotch-app/locales/vi.json
+++ b/packages/hoppscotch-app/locales/vi.json
@@ -400,6 +400,7 @@
"documentation": "Đi tới trang Tài liệu",
"forward": "Chuyển tới trang tiếp theo",
"graphql": "Đi tới trang GraphQL",
+ "profile": "Go to Profile page",
"realtime": "Chuyển đến trang Thời gian thực",
"rest": "Đi tới trang REST",
"settings": "Đi tới trang Cài đặt",
diff --git a/packages/hoppscotch-app/newstore/GQLSession.ts b/packages/hoppscotch-app/newstore/GQLSession.ts
index 4c70559a5..e098dea2e 100644
--- a/packages/hoppscotch-app/newstore/GQLSession.ts
+++ b/packages/hoppscotch-app/newstore/GQLSession.ts
@@ -11,7 +11,7 @@ type GQLSession = {
export const defaultGQLSession: GQLSession = {
request: makeGQLRequest({
- name: "",
+ name: "Untitled request",
url: "https://echo.hoppscotch.io/graphql",
headers: [],
variables: `{ "id": "1" }`,
@@ -213,7 +213,7 @@ export function setGQLSession(session: GQLSession) {
}
export function useGQLRequestName() {
- return useStream(gqlName$, "", (newName) => {
+ return useStream(gqlName$, gqlSessionStore.value.request.name, (newName) => {
gqlSessionStore.dispatch({
dispatcher: "setName",
payload: { newName },