Skip to content

[markdown] Add key shortcuts for shifting left or right a line or selected text

Brett Walker requested to merge bw-markdown-line-shift into master

What does this MR do and why?

Add support for shifting text lines left and right by two spaces. Use cmd-] for shifting right, and cmd-[ for shifting left.

Lines which are part of the text selection (or the line the cursor sits in if there is no selection) are shifted. The selection is preserved.

Toolbar buttons have not been added as currently they cause overrun in the toolbar.

Screenshots or screen recordings

2022-07-29_11.27.20

How to set up and validate locally

Go to any markdown edit field, select text and/or line and use cmd-] and cmd-[ to shift the lines left and write.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

related to #351924 (closed)

Edited by Brett Walker

Merge request reports

Loading