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

[IDEA] Option to make drag and dropping tiddler titles (shown as a link) always make a link #6317

Open
pmust opened this issue Dec 8, 2021 · 2 comments

Comments

@pmust
Copy link

pmust commented Dec 8, 2021

Currently, if you have set to show tiddler titles as links then drag and dropping a tiddler title to edit text box will not make a link out of it unless the title has a space in it. I think there should be an option to allow always making a link if you drag and drop a link. I feel like it is a bit confusing to have TW make a link only in some cases and not in all.

@pmario
Copy link
Contributor

pmario commented Dec 8, 2021

I personally would like to use keyboard function keys to modify the behaviour while in "drag mode".

Eg: If I drag a TW link in Windows 10, I can use CTRL + SHIFT to modify the cursor icon.

  • CTRL + SHIFT .. shows the "create link mouse cursor"

Ubuntu 20.04 does the same thing.

I can't test macOS, so others may jump in here.

For the proposal here I personally would like to have the CTRL+SHIFT key to "force" link creation. At the moment the TW editor doesn't recognize the keyboard modifiers.


I did have a look at the code. ... The "titleString" that is used as a value to be dropped, is created at "drag start". ...

The default drop-handler for text-areas sends the "title string" directly to the browser to use the default behaviour for type: text/plain ... As written above the titleString is defined at drag-start. :/

So we would need to add some keyboard modifier handling for the "drop events".

@saqimtiaz
Copy link
Contributor

See #5309 and in particular the conclusions in this comment

The same approach would serve both use cases.

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

3 participants