Add option to use underscores with bold & italic hotkeys

Sorry, but Unlike the Obsidian-native Shortcuts,
most of these Plugins don’t support formatting Multi-Selects or Table-Ranges.

They also don’t undo the alternative Markup,
so if you have **text** and apply the Wrapper or other Plugins
you usually end up with __**text**__ instead of text.

1 Like

Just add me here as +1. Markdown’s greatest syntactic fault is not defining asterisks as bold and underscore as emphasis. I wish they’d fix this permanently.

1 Like

IMPORTANT: if the devs want to implement this (i am hopeful they will), an important thing to consider is text selection, in both normal mode and vim mode “underscore” is considered a part of the word unlike “asterisks”. This is why trying to select italic text made using “underscore” will select the word + underscore unlike when using “asterisks”.

I think this is why they preferred using asterisks for italic instead of underscore in the first place.

1 Like

+1 to settings to be able to use _ for italics and ** for bold!

2 Likes

Adding my +1 to this.

Seems like this should be a pretty easy feature to implement since Obsidian already supports both, it’s just a question of what characters get inserted when using the hotkeys. Too bad Obsidian is not open source, because this would be solved in an afternoon by a the community.

1 Like

Lots of plugins exist. Scroll up

Just coming to chime in my 2¢ :coin:, personally would love to have this directly be able to individually be set in the Editor settings.

I use the Linter plugin and this allows for easy changing emphasis to the user preferred style (I personally like many others here use _ to distinguish italics, while using ** for bolded text)

So fairly nice in the meantime as a good stop-gap since I use the linter plugin for many other aspects. This allows for always set the emphasis style to be underscore to ensure _ is used.

Makes it simple to still allow for Crtl+b keyboard hotkey shortcut, while linter updates on file save to my preferred characters.

This is outstanding, BTW. As pointed out above, use GitHub - manic/obsidian-wrap-with-shortcuts: Wrap selected text in custom tags with shortcuts.
“Wrap with shortcuts”

  1. Install plug-in, enable
  2. Create a new wrapper, like “Underscore Italics”
  3. Start and End Tag should be a single underscore.
  4. Close, and close Obsidian.
  5. Reopen Obsidian, go to Hotkeys, select Cmd-I or whatever.
  6. Eliminate the conflict from the standard key if necessary.

All done.

The issue is this plugin doesn’t work like the built-in hotkey.

With the built-in hotkey, you don’t need to select the word first. Ctrl + I adds * around the word your cursor is on.

With this plugin you need to select the word first. I still hope there is a built-in way to configure this so the behavior is 100% consistent.

Which is why I use GitHub - chrisgrieser/obsidian-smarter-md-hotkeys: A plugin for Obsidian providing hotkeys that select words and lines in a smart way before applying markup. Multiple cursors are supported as well. , which has been mentioned above.
It was just archived, but it’s still the best.

2 Likes

Ah I see. Works well.

Most of the plugin’s features are part of Obsidian Core by now. Therefore, the plugin is archived

Not sure why it’s archived though, as I clearly just installed it for a feature that’s not built-in :sweat_smile: