Closed beberiche closed 1 month ago
That's a good idea.
If you are interested in the implementation, please let me know. Additionally, it would be necessary to investigate if there are any related libraries for CodeMirror6.
@devleejb Ok! I'll try it. please assign it to me.
@beberiche Sorry for the late check. I assigned you. Is there any progress on this issue? I think this issue might be hard.
I think that it might be helpful to resolve this issue.
Description
In general, programs that support Markdown syntax provide keyboard shortcuts to enhance user productivity when writing.
Similarly,
CodePair
also supports Markdown syntax through its editor, so I would like to introduce keyboard shortcuts that assist in text formatting transitions.Planning
Below is a list of supported functions and keyboard shortcuts found by reviewing the official documentation of popular programs that support Markdown syntax.
Text formatting for Markdown shortcuts
Bold Italic
Code
StrikeThroughUnderline Link(google)Cmd + B
Cmd + B
Cmd + B
Cmd + B
Cmd + I
Cmd + I
Cmd + I
Cmd + I
Cmd + E
Cmd + E
Cmd + Shift + S
Shift + Cmd + U
Cmd + U
Cmd + L
Cmd + K
Cmd + K
Cmd + K
I propose starting with implementing support for
Bold
andItalic
, which are common features supported with the same keyboard shortcuts across different programs.Implementation Approach
The implementation is likely to follow these steps:
(st)
and end(ed)
indices of the text selected by mouse drag within the entire document.(st), (ed=st+1)
(Otherwise, ignore the keyboard shortcut event.)(wrapper)
to the start and end indices when the keyboard shortcut is entered.Challenges