desktop / desktop/desktop

Support inline `code block`s in commit messages, like github

Open
#18,104 4 comments 2 reactions 0 assignees View on GitHub
enhancement not-planned
Dominant language
TypeScript
Stars
21.8k
Forks
10.5k
Avg merge
1d 15h
Merged PRs (30d)
25

Description

### The feature request

Unlike on github, github desktop does not support markdown inline `code blocks` in commit messages
![Github Desktop](https://github.com/desktop/desktop/assets/90388353/884ff028-8f85-40b1-93a7-78af1fcefb79)

Here's what this looks like on the website:
![Github web repo overview](https://github.com/desktop/desktop/assets/90388353/72363a11-3745-434f-98b1-3257e5a41893)
![Github web commit view](https://github.com/desktop/desktop/assets/90388353/5bdf1eea-e17a-4cd6-84cf-464af1e32042)

### Proposed solution

I suggest that within the commit message input field, anything surrounded with \` is rendered in a monospace font and elsewhere it's rendered as a code block `like this`.

### Additional context

_No response_

Added as also in scope: https://github.com/desktop/desktop/issues/18291

The feature request
I often enclose code parts in backticks when writing commit messages. For example, this is a commit message I just made:

Rename `addChildren` method to `addItems`
Writing backticks takes time, so it would be great if Desktop could support the same CMD/CTRL+E shortcut as GitHub uses.

Proposed solution
Pressing CMD/CTRL+E adds backticks around the selected text

Additional context
No response

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.