Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:30 PM   #1
jjk
Enthusiast
jjk began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
Wish keystroke to Wrap/Unwrap lines in the editor

Dear Kovid

Could you add this feature to Calibe editor ?
I know that switch exists in Preferences > Editor properties, but it is a bit complicated to access to it.
So it would be very pleasant to be able to swap, by a keystroke, wrapping of long lines.

TIA and cheers for your masterpiece.
JJK
jjk is offline   Reply With Quote
Old Yesterday, 03:05 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,035
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Have you tried Beautify (the flower icon)?
theducks is offline   Reply With Quote
Advert
Old Yesterday, 03:42 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,233
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I suspect the OP wants to be able to enable/disable long lines much like enabling/disabling word wrap in a text editor. As mentioned wrap long lines is currently an option in the editor preferences but the OP seems to want a hot key.

Personally, I prefer wrapping lines so I can see the entire line and I see little need for not wrapping lines other than a desire to make seeing the entire line a pain.
DNSB is online now   Reply With Quote
Old Yesterday, 09:48 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,057
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont see a use case for a dedicated shortcut for this. Why do you want to change wrapping often?
kovidgoyal is offline   Reply With Quote
Old Yesterday, 11:54 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,729
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW - I use the Toggle Line Wrap Mode option in Sigil's CV context menu when I want to see the structure of the code and how that represents in Preview.

Click image for larger version

Name:	Screenshot 2024-06-30 134317.jpg
Views:	10
Size:	903.4 KB
ID:	209282

BR

Last edited by BetterRed; Today at 12:27 AM. Reason: Better screenshot, put a border around menus
BetterRed is offline   Reply With Quote
Advert
Old Today, 12:12 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 37,233
Karma: 148321048
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BetterRed View Post
FWIW - I use the Toggle Line Wrap Mode option in Sigil's CV context menu when I want to see the structure of the code and how that represents in Preview.
I generally find that I need to see the entire line which requires either scrolling left/right or wrapping long lines. If there was a guarantee that nothing past the part of the line that is visible in the CV windows contained any modifiers, my opinion might be different but for now, seeing the entire line is pretty much a necessity, IMHO. For instance in the sentence below to see the italic at the end of the paragraph/line.

Code:
<p class="paran">As she reached for it, her gaze snagged on the last one in the row, a beautiful blue-green oval with tiny red veins. She’d never seen a gem like it, nor had she seen a carving as…arrogant—that was the word that sprang to mind—as this one held. It featured a dragon, its wings spread and its tail curling around to the back of the gem. Was it meant to portray one of the founder dragons? Or simply one of the wild lesser ones remaining in the world today? Who would have believed themselves worthy of wearing such a gem? What master would have carved it? And what would it <i>do</i>?</p>
DNSB is online now   Reply With Quote
Old Today, 02:03 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,057
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...e8644970712313
kovidgoyal is offline   Reply With Quote
Old Today, 12:43 PM   #8
jjk
Enthusiast
jjk began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Aug 2018
Location: Paris (France)
Device: Kobo Kindle Vivlio-Inkpad3
Thank you, Kovid. That is all I wished. So I will be able to change wrapping on the fly.
That is because I often have to modify epub resulting by export from Indesign, and I want to beautify, to clean the ugly code got by Indesign. Often classes or other attibutes are in the beginning of <p> tags, and so the text I want to clean is at the beginnig of each line.
When wrap is on I see all the <p> text but the structure of the file is hide, when it is off I see only the text I want to clean, and file structure is visible.

Still thank you.
jjk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to ePub - impossible to unwrap line breaks on this file? barbiedolphin Conversion 4 05-19-2024 06:35 PM
How to enable Word Wrap in the Editor? Entry20 Editor 4 10-02-2018 12:03 PM
Why does log not show if unwrap lines has been triggered ? nwpsys Conversion 7 06-19-2011 04:38 AM
possible bug about.pdf Unwrap zambosky Calibre 5 06-20-2010 09:53 AM
PDF line unwrap miquel Calibre 15 05-26-2010 05:35 PM


All times are GMT -4. The time now is 03:33 PM.


MobileRead.com is a privately owned, operated and funded community.