Zettlr: Ctrl+K automatic paste doesn't work with some urls

Created on 24 Jul 2020  路  8Comments  路  Source: Zettlr/Zettlr

Description

Ctrl+K doesn't automatically paste urls when used with some non-standard urls.

Reproducing

  1. Copy this link - https://data-flair.training/blogs/python-project-ideas/ to clipboard
  2. Use Ctrl+K shortcut in Zettlr

Expected behaviour

Markdown text, such as [](https://data-flair.training/blogs/python-project-ideas/)


Screenshots
image

Platform

  • OS and version: Windows 10 Pro, Build 19041
  • Zettlr Version: 1.7.1
  • Screen Resolution: 2560x1440 on two screens, Zettlr on secondary one

Additional information

From what I managed to get my head around, when last part of main url has more than 4 characters, it's not considered URL.

bug [non-critical] confirmed

All 8 comments

Does it work, if you have some text selected? Or doesn't it also work with text selected?

It doesn't, behavior is similar to the first example:
image

Alright, would you mind to quickly have a look at the clipboard's contents so that I have all information for tackling this bug?

(Activate Debug mode in advanced settings, then menu -> Develop -> Inspect Clipboard)

It will help to know what the clipboard looks like as Zettlr looks at that when deciding what to do!

image

Thank you! I'll get into it!

I'm an idiot. Somehow I limited the Sub- and global domain name to max. 256 characters, and the top level domain to 2-4 characters. Don't ask me why I thought that'd be a good idea 馃し

No worries, did such stuff myself many times :D Thanks for the quick fix :)

Yeah, it's just that in the past three months due to increased activity I am forced to view and correct all the stupid decisions from 3 years ago increasingly often, hahahaha

Was this page helpful?
0 / 5 - 0 ratings