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

Include a possibility to have clickable URLs in notes. #1426

Closed
Tracked by #1541
xahodo opened this issue Apr 29, 2023 · 4 comments · Fixed by #2067
Closed
Tracked by #1541

Include a possibility to have clickable URLs in notes. #1426

xahodo opened this issue Apr 29, 2023 · 4 comments · Fixed by #2067
Labels
enhancement Request: New feature or improvement next release Note: Features planned for next release

Comments

@xahodo
Copy link

xahodo commented Apr 29, 2023

I need to reference external resources in my notes, and sometimes it's just too much to copy into NovelWriter. A separate note-taking application would just mean another distraction while I'm working on my story. When I'm working on my story I like to have as few as possible applications open, to limit distractions.

I would love to insert an URL in my notes and be able to click them. A solution would, for example, be an expansion on the comment tag, much like the %synopsis: tag, for example: %url:. The following text would then open the OS' default browser when clicked.

For possible bonus points this url could be included in the outline view and be clickable there too. Another solution for the outline view would be to have a button for each url in the outline view. When the on hover event occurs on such a button, the url could be displayed in a tooltip.

@xahodo xahodo added the enhancement Request: New feature or improvement label Apr 29, 2023
@vkbo vkbo changed the title Include a possebility to have clickable URLs in notes. Include a possibility to have clickable URLs in notes. Jun 6, 2023
@vkbo vkbo mentioned this issue Jan 15, 2024
8 tasks
@vkbo
Copy link
Owner

vkbo commented Jan 31, 2024

I've added this request to the Editor Shortcodes epic, and it could be implemented as something like:

[url=https://github.com]GitHub[/url]

@vkbo vkbo added this to the Release 2.4 Beta 1 milestone Feb 26, 2024
@vkbo vkbo added the planned Note: Feature planned for a later release label Feb 26, 2024
@xahodo
Copy link
Author

xahodo commented Jun 23, 2024

How about keeping this consistent with how things are done with, say, synopsis? e.g. %url: https://some.site/page

To me it seems like this belongs more in the realm of comments, rather then shortcodes which seem to be dealing with formatting.

@vkbo
Copy link
Owner

vkbo commented Jun 23, 2024

Well, clickable links is formatting. However, a solution is to add regex recognition of URLs to the preview, and just make them clickable as-is. I've considered this too. But the shortcode formatting also makes it possible to include well formatted links in the manuscript. Which to be fair makes little sense for fiction writing.

But recognising URLs in-text is certainly easier, and maybe I should limit the scope to do just that.

@vkbo
Copy link
Owner

vkbo commented Oct 25, 2024

I've created an implementation that simply recognises URLs in the text as links, as long as they start with http or https. They are highlighted as links, you can follow them from the editor via the right-click meny or by ctrl+clicking them, use regular mouse click in the viewer and manuscript preview, and export them to HTML, ODT, PDF and DocX.

@vkbo vkbo added next release Note: Features planned for next release and removed planned Note: Feature planned for a later release labels Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request: New feature or improvement next release Note: Features planned for next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants