r/ObsidianMD • • 11h ago

help inserting code block with ctrl + backtick doesn't work anymore..

Hey! I used to be able to create code blocks with ctrl + backtick.

I cannot do that anymore. When i try to set it via the gui, it gives me ctrl + ' instead of a backtick.

If i set it in the hotkeys.json file, it doesnt work either:

  "editor:insert-codeblock": [
    {
      "modifiers": [
        "Mod"
      ],
      "key": "`"
    }
  ]
}

Does anyone have a trick to pull it off?

update: i just figured something.. it works in english US, but not on french canadian. in order to do a triple tick, we have to press the key on the left of the enter key 6 times.

so it records the key as ' and not as a backtick, even if it's a back tick.

our backticks are for accents like these: è. this is the reason we have to press 6 times.

I was using ctrl + backtick a few months ago to save time..

2 Upvotes

4 comments sorted by

1

u/roam_roamed 11h ago

Works for me if I configure it in the Hotkeys settings. If you have it set up there and it's not working, try it in the sandbox vault. A plugin might be interfering.

2

u/XxTriviumxX 11h ago

i just figured something: it works in english US, but not on french canadian. in order to do a triple tick, we have to press the key on the left of the enter key 6 times.

so it records the key as ' and not a back tick, even if it's a back tick.

our backticks are for accents: è

1

u/Master-Rent5050 10h ago

Does the French Canadian keyboard use a dead key?

1

u/XxTriviumxX 10h ago

backtick is a dead key. hence why we have to type it 6 times instead of 3. A few months back it worked as a hotkey combo.