added Crtl + Shift + E command for Explain function

pull/4885/head
shubhiscoding 6 months ago committed by Aniket
parent 540d5a4b52
commit 6e71d967d1
  1. 5
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -734,7 +734,10 @@ export const EditorUI = (props: EditorUIProps) => {
label: intl.formatMessage({ id: 'editor.explainFunction' }),
contextMenuOrder: 1, // choose the order
contextMenuGroupId: 'gtp', // create a new grouping
keybindings: [],
keybindings: [
// Keybinding for Ctrl + Shift + E
monacoRef.current.KeyMod.CtrlCmd | monacoRef.current.KeyMod.Shift | monacoRef.current.KeyCode.KeyE
],
run: async () => {
const file = await props.plugin.call('fileManager', 'getCurrentFile')
const content = await props.plugin.call('fileManager', 'readFile', file)

Loading…
Cancel
Save