-
| DescriptionNone of my custom defined keyboard shortcuts for R or anything else seem to work when I use quarto Visual Editor in VSCode. The standard context definitions for editor, language, notebook seem to not work. This is preventing a bunch of other extension to work while using the visual editor and my standard workflow shortcuts. In the source editor everything is fine, but I can't seem to find any way to modify keyboard shortcuts in the Visual Editor. Any ideas? The basic example is inserting the R pipe symbol (|>) with the    {
    "description": "R Pipe Operator",
    "key": "cmd+shift+m",
    "command": "type",
    "args": {
      "text": " |> "
    },
    "when": "resourceLangId == 'r' || resourceLangId == 'quarto' || terminalFocus",
  },
  { "description": "R Pipe Operator in terminal",
    "key": "Cmd+Shift+m",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
      "text": " |> "
    },
    "when": "terminalFocus"
  },Which work in source mode, but not in visual mode. | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
| 
 | 
Beta Was this translation helpful? Give feedback.
focusedView == quarto.visualEditor?Or
view.quarto.visualEditor.visible.Actually, it's not a "view".
The correct context should be:
activeCustomEditorId == 'quarto.visualEditor'.