elementary / elementary/code

More markdown shortcuts

Open
#916 2 comments 1 reaction 0 assignees View on GitHub
Parent issue
Dominant language
Vala
Stars
521
Forks
118
Avg merge
1d 8h
Merged PRs (30d)
14

Description

## Problem

Code only has very basic markdown shortcuts.

## Proposal

* Make the backticks \` work like parenthesis: adding a single backtick adds a double and selecting text and inserting a backtick surrounds the text with it. Backtick is used in markdown to create `monospaced text`
* Use `Ctrl`+`Shift`+`1` up to `Ctrl`+`Shift`+`6` for headers. Make it a toggle shortcut.
* `Ctrl`+`Shift`+`P` for inserting images (**p**ictures, get it? ;). Maybe even use a file chooser to select the file.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by locating the editor's markdown shortcut and keybinding handling, then determine how image insertion is implemented; done means backticks, heading toggles, and image insertion work as proposed without regressing existing shortcuts.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.