Add shortcut command for adding a hyperlink (Command/Control + K)
Problem to solve
Many applications that have a feature for creating hyperlinks use the same key-command shortcut: Command+K for MacOS and Control+K for Windows. GitLab does not offer that particular shortcut, which is disappointing for power users.
Further details
Here are some of the applications with the Command/Control+K shortcut for creating hyperlinks:
- Apple: Mail, Pages
- Google: Docs, Gmail
- Microsoft: Excel, PowerPoint, Word
- Wordpress
Proposal
When editing text, highlighting some text then hitting Command/Control+K causes the text to be wrapped in link markdown, and the cursor placed in the parentheses.
- Write something:
We should consider adding a shortcut. - Highlight some text and hit Command/Control+K:
We should consider [adding a shortcut](). - The cursor would be placed in the parentheses - that is for easy paste of the URL from the clipboard using Command/Control+V.