-
Notifications
You must be signed in to change notification settings - Fork 3.7k
add Insert Markdown Hyperlink package #9223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add Insert Markdown Hyperlink package #9223
Conversation
packagecontrol-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automated testing result: WARNING
Repo link: Insert Markdown Hyperlink
Results help
Packages added:
- Insert Markdown Hyperlink
Processing package "Insert Markdown Hyperlink"
- WARNING: The package does not contain a top-level LICENSE file. A license helps users to contribute to the package.
|
Also the reason it's not submitted to the other markdown tools is bc those follow that same pattern of inserting the base markdown template for each syntax element. ... also added a LICENCE file thanks to the package processing message, thanks. |
| { | ||
| "name": "Insert Markdown Hyperlink", | ||
| "details": "https://github.com/noahcoad/SublimeInsertMarkdownHyperlink", | ||
| "labels": ["markdown", "hyperlink", "url", "link"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "labels": ["markdown", "hyperlink", "url", "link"], | |
| "labels": ["markdown", "url", "link"], |
hyperlink is not a label that already exists, and doesn't feel like it really adds much. It feels very 1990's to be talking about "hyperlinks" 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the feedback. Will address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to publish your packages, but all 3 PR's have feedback on them that needs to be handled first.
|
It sounds a little bit like what MarkdownLink tries do to. But different enough to be a good addition to the ecosystem. Only thing I see in the package itself is that the example keymap isn't used. You could link it in Package Settings (except you don't have any settings). For both settings and key bindings it's common practice to have them in the command palette as well, so you could consider that too. |
Good find. Actually it's quite similar. Mine has more intelligence in a way around other options, like using what's in the clipboard or selected text (url or not). I'll reach out to the author to see if they're open to me enhancing their package. |
Can you say more? Thought the best practice was to not use a keymap by default (hence I had recommended keymap in there), but I'd certainly like to include a default package keymap settings w the one key mapped if that's okay. And good point about having the keycap in the settings. I'll add that. |
This is a good example: https://github.com/Mister7F/sublime-telescope/blob/master/Default.sublime-keymap. The map is there, there is a menu entry for it, but it's disabled. As a user all you need to do is copy the binding from left to right to your personal keymap, and adjust if needed. |
|
Let me know when you've had a chance to look at the feedback! |
My package is similar to ... a few other Markdown packages that also have a command to insert a hyperlink
However it should still be added because ... Those other markdown packages insert just the '' base template, as they do with any other markdown shortcut, like '
' for images, '#' for headers etc. This package inserts hyperlinks much more intelligently by using the selected text/url placing it the right spot, or using a url in the clipboard, then grabs the title from the url if available, and sets the selected text and cursor in the spot most needed (title or url).