BoostNote-Legacy icon indicating copy to clipboard operation
BoostNote-Legacy copied to clipboard

Ctrl+click to follow link not working

Open yetAnotherUsernameTaken opened this issue 7 years ago • 14 comments

Current behavior

Clicking on toc contents does not scroll to linked content in Xubuntu 18.04 .

Expected behavior

After clicking on toc link, it should scroll to linked or related content.

Steps to reproduce

  1. Make a new note in boostnote.
  2. Generate toc
  3. click on toc content

Then you can notice that it does not scroll to linked content.

Environment

  • Version : 0.13
  • OS Version and name : xubuntu 18.04

yetAnotherUsernameTaken avatar Nov 17 '19 07:11 yetAnotherUsernameTaken

I can't reproduce this on Ubuntu 16.04.

There were some errors with links not working in version 0.13.0. Those should be fixed in the next release, so hopefully this issue will also be resolved by that.

Flexo013 avatar Nov 18 '19 09:11 Flexo013

this might be caused by a special character. To reproduce we need to know the TOC entry that is failing.

arcturus140 avatar Nov 18 '19 10:11 arcturus140

Please check with this markdown note. I am not able to, make the toc links click and make it go to content in xubuntu 18.04. As you have said, it might issue with recent build, i hope this might be fixed in next version.

interview questions.txt

Thank you.

yetAnotherUsernameTaken avatar Nov 18 '19 14:11 yetAnotherUsernameTaken

When I create a note with that exact content the TOC links all work fine for me on Ubuntu 16.04.

Could somebody else with xubuntu 18.04 confirm that this issue exists?

Flexo013 avatar Nov 19 '19 12:11 Flexo013

This happens on MacOS too, version 0.13.0.

I rolled back to 0.12.1 and it works again.

ignaciogarcia avatar Nov 20 '19 11:11 ignaciogarcia

@ignaciogarcia Was all TOC links that did not work for you or just scrolling issues?

Flexo013 avatar Nov 21 '19 20:11 Flexo013

I didn't thoroughly click in all TOC links, but the ones I tried didn't work. The "Press Cmd + click to follow link" popup does appear in the editor window, but following the instructions doesn't have any effect. Nor does it if I click on a link in the preview window.

As mentioned, falling back to 0.12.1 fixes the problem IN THE PREVIEW WINDOW. Doesn't work either in the editor window.

I have tried with an old installation (0.11.13) I have at another Mac at home and the behavior is the same; links in the preview window do work, links in the editor window preceded by the popup don't.

ignaciogarcia avatar Nov 21 '19 22:11 ignaciogarcia

I hope that the link and scroll fixes in the next release (0.14.0) will also fix this, but we'll have to see about that.

Flexo013 avatar Nov 22 '19 10:11 Flexo013

I seems to have stopped working 0.13.0, on my Windows 10 Pro. 64-bit too, but started worked again when I downgraded back to 0.12.1; so I'll stop it and chocolatey, updating it, until I see a release notification for a new version.

rwperrott avatar Nov 28 '19 16:11 rwperrott

Can anybody confirm that this is fixed in the 0.14.0-0 pre-release?

Flexo013 avatar Dec 31 '19 14:12 Flexo013

Still not working completely in 0.14.0. It does work if you clic on a TOC link in the right pane, but it doesn't if you Cmd-click (as prompted by the popup) in the editor.

ignaciogarcia avatar Jan 06 '20 00:01 ignaciogarcia

Can confirm that this in-editor Ctrl + click does not work.

Flexo013 avatar Jan 08 '20 18:01 Flexo013

That's still an issue as mentioned in PR #3002.

It is for every link in the editor (see snippet below). Link behavior in the preview is working as expected.

I'll create a PR for this. I think there is code missing in hyperlink.js mousedown handler - just normal web links are handled. I'll try to move the link click handler in a js file so it can be used by preview and editor - so we don't have the code at two locations.

# Tag link test

- Item 1 [#Typescript](:tag:#Typescript)
- Item 2 [#1st tag](:tag:#1st)

# Note link
[XSS plantuml](:note:9a4c36c2-84e9-448a-a01c-eb1e555b7a6b)


# Some dummy text (for line link test)
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

# Line link
[Goto line 3](:line:3)

# External link
[Google](https://www.google.com)

AWolf81 avatar Feb 19 '20 20:02 AWolf81

Will be fixed as of 0.15.2

Flexo013 avatar Mar 26 '20 01:03 Flexo013