20 0
Contact Author Sign in to rate

remove linebreaks / do word wrap

0.02MB. Updated 2021-12-11.
The author has shared 75 other item(s).

Description

This add-on does not work on Anki 2.1.50 from April 2022. I'm busy at the moment, so an update might take some weeks. This add-on tries to remove all line breaks from a field or a selection to make copy/pasting from PDF files less cumbersome. This add-on offers some configuration options (like the shortcut). You should adjust the default shortcut combination. If the shortcut suddenly stops working you should check if you have a shortcut conflict: If the same shortcut is set twice (e.g in Anki and one add-on or in two add-ons) then the shortcut is not working anymore. # some features - if text is selected, only the selection is affected. - can be called from context menu - you can undo the action with Ctrl+Z - tries to preserve double line breaks - the function to batch process from the browser was removed. - the add-on tries to remove "-" which are at the end of the line. A crude algorithm is used that might remove too much or too little. # Versions - 2021-12-11 new icon I like better, misc - 2021-04-12 fix for 2.1.41+ - 2020-05-11 always undo with Ctrl/Cmd+Z, keep formatting when replacing whole field contents. Both changes are made possible by moving the replacing code from python to js (in the webview). Now the add-on always tries to remove "-" at the end of a line, there's no more user setting to deactivate this. If you still have such a user setting it will have no effect. - 2019-04-11 initial release # Problems, Bugs, Errors, Improvements There's a good chance that you'll find bugs. If you find one or have a bug fix or improvement you can tell me in the official support forum or on github. I made this for me and I just need an add-on that mostly works. If you want an add-on that works in all cases don't use this add-on. # other authors This add-on is an extended modification of RemoveLinebreak (which has been unchanged for over three years and looks abandoned). - 2016 Remco32 - 2014 Jeff Baitis

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

2028179508

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1663830283
This add-on is so helpful, I use it for textbooks that have many page breaks, and creating flashcards was so much faster, I would apreciate so much if you could update this add-on now that the courses began again.
on 1661336260
Very useful!!!
on 1659936291
thank you so much for such a great work. I have been searching for this add on forever !!!
on 1649059528
nice job, but it not work in my m1 mac qt6 edition,could you update this addon to adapt the newest edition
on 1639415065
Very very useful - especially if you copy text from pdf. Many thanks!

Proposal for a useful option (at least for me): pdf texts (from books) often have Non-breaking space which fucks up my cards every time. So, what I must do: go to the browser, select the cards, do a find and replace: replacing "&nbsp" with " " (just a normal space). That’s quite cumbersome. If possible (and it’s probably easily implemented) this option could be added to the addon.
Comment from author
that sounds useful. I'll make a note to include this in the next update. In the meantime the add-on https://ankiweb.net/shared/info/356095608 should also help (though it's an additional shortcut) but it should be faster than going over the browser.
on 1625346169
Thank you so much!
Is there an way to automaticly do this when paste?
on 1618303431
Essential if you work with digital text books often. Thanks for the update!
on 1614140323
Very good, incompatible with Customize Editor Stylesheet https://ankiweb.net/shared/info/1215991469
on 1611171478
It is soo great that it removes hypens!
on 1609072444
الف رحمة على والديك
God bless you and your parents
on 1597664995
it works.
on 1591299250
So useful
on 1586519647
Thank you so much!!!
on 1585579910
Nice!
on 1582010991
Life saving
on 1573145068
Works great with the Button. Can you please add keyboard shortcut?
Comment from author
The default shortcut is "Ctrl+Alt+0". If another add-on also uses the same shortcut this won't work.

You can adjust the shortcut from the add-on window (Main Window -> Tools - Add-ons. Then the add-on window opens. then select the name of this add-on, then click the "Config" button in the right of this window ).
on 1571769462
Excelente, top!
on 1571512833
Just what I needed
on 1571422307
Great!
on 1554975751
Finally, thanks guys.