-
Notifications
You must be signed in to change notification settings - Fork 24
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
Don't override standard ctrl+v functionality #22
Comments
Hey @Mpic, I am unable to reproduce the issue with Could you please make sure that you have the following regex specified in settings? ^[a-z0-9-]+:(\/){2,3}[a-zA-Z0-9-]+ If it's the only issue you're experiencing with the But I agree, ideally, the plugin should disable the |
Thanks !
The one you gave works better. Still, it really would be nice to leave |
Yeah I would also like to prevent the plugin from hijacking |
I would also argue that a better default hotkey would be |
I have mine set to |
I have found that I don’t need the default add markdown link as this plugin implements its functionality. |
Yes, even if I choose I think it's necessary to judge whether the chosen or copied content is a URL before changing the pasting action. |
Right. Either we use a dedicated hotkey for pasting URLs or we use the same hotkey ctrl-v, but then it should be checked whether it's really a URL. Also, if you are already inside a link construct, i.e. |
Thought maybe a video demonstrating the issue might be helpful? Screen.Recording.2021-07-03.at.10.08.33.am.mp4 |
Hi, i just created a GitHub account, just to tell you that your plugin is great. <<title: %3C%+ tp.file.title %%3E>> I tried to change the hotkey, i tried to change almost every possible setting. Thank for your work on that. |
This is happening for me even when I'm not using Templater. I'm using Ctrl+K as my "paste into link" hotkey, and Ctrl+V'ing into a selection still pastes the link "inside" it. |
I will see what I can do about this, most likely over the weekend. |
I too am wishing this plug-in would fallback to standard paste behavior in more scenarios. Regarding @NeighNeighNeigh's example, perhaps just testing the selected text for Allowing the option of an alternate link pasting hotkey would be nice, though. Also thanks for this work! |
Yes, I ran into the same situation a few times while going through old notes and editing them. |
Same issue here. I love the plugin but it is quite error prone when copying text around. |
Is this plugin maintained at all @denolehov? Could the people with the pull requests take over or just also maintain? |
Looks like, I created duplicate issue here #53. |
If anyone's curious, I also made my own version of this plugin that implements this as an option (and also allows bypassing the plugin by holding Shift otherwise): https://github.com/jose-elias-alvarez/obsidian-paste-link |
This plugin is awesome as it implements one of my preferred Typora's functionalities : automatic handling of URL pasting.
I love being able to copy a URL, select some text (or not if I just want one word) then
ctrl+K
to automagically make a perfect Markdown link.However, I really don't want to use
ctrl+v
for that, and this plugin even though I set a hotkey toctrl+k
continues to overridectrl+v
and it shows each time I paste something that is detected wrongfully or not as an URL : as an example, pasting<% tp.file.cursor() %>
anywhere gives[](<%3C% tp.file.cursor() %%3E>)
and usingshift+ctrl+v
doesn't bypass this, so I have to either manually delete all the junk added by the plugin or stop using the plugin :'(Please, just use the hotkey setting to activate the plugin !
The text was updated successfully, but these errors were encountered: