Skip to content
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

Feature: Allow Non-Formatted Pasting with Ctrl + Shift + V #37

Open
About7Deaths opened this issue Jan 29, 2022 · 5 comments
Open

Feature: Allow Non-Formatted Pasting with Ctrl + Shift + V #37

About7Deaths opened this issue Jan 29, 2022 · 5 comments

Comments

@About7Deaths
Copy link

There are some bugs when pasting raw URLs into the example.com portion of [example](example.com).

Demo: paste google.com into [example](paste_here). It will format as [example]([ ](google.com)).

I propose allowing for the standard use of Ctrl + Shift + V for non-formatted pasting. This could be a great workaround for some issues other people are having in some of the other requests. Current I have to disable the plugin when editing a lot of hyperlinks.

@HaleTom
Copy link

HaleTom commented Feb 11, 2022

Great idea - a standard key combo for pasting unformatted :)

@rrherr
Copy link

rrherr commented Apr 21, 2022

Here's how another plugin does it:

https://github.com/ganesshkumar/obsidian-excel-to-markdown-table/blob/71917841c6855889193e7df5e1dd8aa77dc58e63/src/main.ts#L10-L14

// Check for `Shift + Mod + V` triggered event.
// Do not handle `Shift + Mod + V` events.
if (evt.clipboardData.types.length === 1 && evt.clipboardData.types[0] === 'text/plain') {	
	return;
}

@nistude
Copy link

nistude commented Apr 25, 2022

Alternatively, this plugin could also leave the regular paste behavior as it is and just rely on a custom keyboard shortcut for URL paste, i.e. remove https://github.com/denolehov/obsidian-url-into-selection/blob/master/src/main.ts#L13.
For example, in Zettlr they use CTRL+K for URL paste.

@GollyTicker
Copy link

I actually like it, that is changes Ctrl+V. Otherwise I would have to remember another shortcut.

Though the choice of Ctrl+K does make sense, as many other apps use that too.

@avraam-inside
Copy link

+1 i need it too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants