tildes-extended icon indicating copy to clipboard operation
tildes-extended copied to clipboard

Map `C-k` to add link on text fields

Open alienbogart opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

No.

(optional) Describe the solution you'd like

With text selected, hitting C-k would open a dialog for the user to paste a URL. On pressing Return inside the dialog, the selected text would become a link for the pasted URL.

This is identical to the behavior of the Reddit Enhancement Suite.

(optional) Describe alternatives you've considered

Hitting C-k on selected text could automatically create the link with the URL on the clipboard, without the dialog. Ideally, throw an error if the content of the clipboard is not a valid URL.

alienbogart avatar Dec 23 '19 15:12 alienbogart