Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
feat: add essential keymaps to codemirror input box - resolved #2264
liyasthomasf7ca3f8bd1c7
diff --git a/packages/hoppscotch-app/components/smart/EnvInput.vue b/packages/hoppscotch-app/components/smart/EnvInput.vueindex 860b787f7..69029c5c4 100644--- a/packages/hoppscotch-app/components/smart/EnvInput.vue+++ b/packages/hoppscotch-app/components/smart/EnvInput.vue@@ -29,10 +29,13 @@ import {placeholder as placeholderExt,ViewPlugin,ViewUpdate,+ keymap,} from "@codemirror/view"import { EditorState, Extension } from "@codemirror/state"import clone from "lodash/clone"import { tooltips } from "@codemirror/tooltip"+import { history, historyKeymap } from "@codemirror/history"+import { defaultKeymap } from "@codemirror/commands"import { inputTheme } from "~/helpers/editor/themes/baseTheme"import { HoppReactiveEnvPlugin } from "~/helpers/editor/extensions/HoppEnvironment"import { useReadonlyStream } from "~/helpers/utils/composables"@@ -172,6 +175,8 @@ const initView = (el: any) => {}}),+ history(),+ keymap.of([...defaultKeymap, ...historyKeymap]),]view.value = new EditorView({