Anki add-on: Add Hyperlink

This ad-don is just about adding hyperlinks into your fields of your notes. Nothing more. This add-on adds a dialog to enter hyperlinks (see screenshot below) and some context menu entries for handling hyperlinks. The shortcuts to insert a hyperlink (default Ctrl+Shift+H) and unlink (Ctrl+Shift+Alt+H) can be configured using the configuration window of 2.1: Tools>Add-ons, select the add-on and click on "Config". The add-on extended editor for field (for tables, search&replace, ...) is also useful to add, delete or edit hyperlinks, i.e. it's an alternative to this add-on. This is a partial fork of the add-on Power Format Pack (Copyright 2014-2017 Stefan van den Akker) because it won't be ported to 2.1 (as of 2018-11). # Styling If you don't like how the hyperinks look like during reviews (blue and underlined) you can adjust this by changing some css in the styling section of the card templates for window. To change how hyperlinks look in the editor you need (in Anki 2.1.49) another add-on like https://ankiweb.net/shared/info/181103283 (but this is pretty complicated). # Alternatives For some uses cases (links to the same site that have a similar url structure) this built-in feature is better: https://apps.ankiweb.net/docs/manual.html#dictionary-links # bugs, errors, feedback Please do not use reviews for bug reports or support requests. I don't get notified of your reviews, and properly troubleshooting an issue through them is nearly impossible (formatting is limited and I can't reply multiple times). If you find a bug let me know in the official anki support forum , on github . The source code is available on github . # Credits - Stefan van den Akker (the original code for Anki 2.0) - Arthur Milchior (all the changes in the version from 2020-04-03, mainly the optional config with a GUI with the add-on Graphical form to change add-on configuration ). # Versions - 2023-06-18 (2.1.50+ only) fix hyperlink sometimes inserted at the beginning of a field; if clipboard or selected text is an url put it in the hyperlink dialog in the url field (issues 20,21) - 2023-04-30 (2.1.50+ only) fix a bug occuring in 2.1.50+, new option in dialog to prepend https/https - 2022-05-23 fix for 2.1.50/qt6: fix "open url" etc context entries. - 2022-02-09 fix for 2.1.50 context menu - 2022-01-26 fix 2.1.50 for qt5 - 2021-12-05 version for 2.1.50, thanks @ zjosua for the update. - 2021-11-21 add "when problems occur" section to config.md - 2021-07-10 some cleanup for 2.1.45 - 2020-07-29 partially reverse change from 2020-06-15, at least sometimes keep the surrounding formatting, see issue 7 . - 2020-06-18 fix latest release: rename a function everywhere ... - 2020-06-16 added editor context menu "open URL" (in browser), can be switched off/hidden in the add-on config - renamed a config option - made a context menu entry optional - yesterdays addition is optional - strip whitespace around links - 2020-06-15 try to deal with illegal characters in URL("), remember window size - 2020-04-03 optional config with a GUI with the add-on Graphical form to change add-on configuration - 2019-10-20 improve interoperability - 2019-10-15 manifest.json - 2019-04-11 added context menu entries (experimental) - 2018-11-03 initial release

GitHub repository: ijgnd/anki21__editor_add_hyperlink
Languages: Python, HTML