Closed wowthedoge closed 1 month ago
Just a small change I wanted to do to test the waters as my first contribution to open source 😅. This was my own idea, please don't hesitate to let me know if this isn't the intended behavior.
Hi. Thanks for the submission!
I think that similar to this change, but more immediately useful, would be to add a "turn selected text into Markdown link" feature.
Basically, doing almost exactly what this Github comment window does. Here's how I imagine it would work:
(url)
, like this: [selected text here](url)
(Bonus: if the selected text is a URL, then use it in the (url)
section, so user would end up with : [link text](https://the.url.they.selected)
)
What do you think?
Yeah, sounds good! I'll try my hand at that.
Hey, here's the feature suggested. I noticed ctrl+shift+k
wass already taken for 'merge card up', like an undo for ctrl+k
. This can also be done with ctrl+shift+up
so I've went ahead and replaced ctrl+shift+k
with the insert markdown link functionality you mentioned. For consistency, I've also removed ctrl+shift+j
as an undo for ctrl+j
. What do you think?
This works great, thank you!
Sorry for the delayed responses.
I just have a few change requests. You can either do these yourself (so you can get the satisfaction of having developed this feature 100% yourself :grin: ), or tell me and I can implement them.
Once it's live, I'll add this to the keyboard shortcut modals and help screen, so people can find it and start using it :+1: .
Ok! Here it is, "mod+shift+j/k" restored and the insert link changed to be using "mod+alt+k".
Merged, and added to the "Shortcut" menus.
Thanks for implementing this!
That's great! Thank you for the opportunity. If there's any other features you need help with, I'll be glad to contribute!
Made it so that Ctrl+B adds the needed asterisks and places the cursor between them, so no need to highlight text before bolding them. Same for italics.
Tests: I have only tested locally, without Cypress (I have not set up the testing yet).