Rainie3535 / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Add ability to sort HTML files alphanumerically #1168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add the ability to sort HTML files in alphanumeric order in order to support 
large numbers of files added at one time.  Currently, when existing files are 
added they are ordered alphabetically - meaning a10 comes before a2.  Initial 
patch to follow.

Original issue reported on code.google.com by meme90...@gmail.com on 11 Jan 2012 at 10:17

GoogleCodeExporter commented 9 years ago
Patch to add ability to sort HTML files in book browser to support occasional 
adding very large numbers of files at once to avoid having to manually 
re-order.  
- Right click menu option on HTML book browser folder
- Sorts all HTML entries in book browser alphanumerically (case-sensitive)
- Updates reading order to match new sort order
- a10 a2 a1 A5 3 b2 a2a a sorts as 3 A5 a a1 a2 a2a a10 b2
- added as separate class file with re-implementation of operator< for all 
browser QStandardItems (but special sort used only for HTML)

Possible issues
- sort order constants may not be in optimum location
- will re-sort title/index pages as well as chapters - but it may be easier to 
move them than move chapters
- sort may not be the most efficient but appears quick enough 

Possible extras
- sort selected entries only - separate issue as involves multiple selection 
handling
- sort images/styles - no real need but possible to add

Original comment by meme90...@gmail.com on 11 Jan 2012 at 12:23

Attachments:

GoogleCodeExporter commented 9 years ago
New patch - apply this after patch for issue 269 (multiple-selection) to 
provide support for sorting selected items alphanumerically.
Includes adding a Refresh to rename to make sure data is updates.

Original comment by meme90...@gmail.com on 15 Jan 2012 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
Ignore the first patch.

Original comment by meme90...@gmail.com on 15 Jan 2012 at 9:41

GoogleCodeExporter commented 9 years ago
well, that's an amazing job you're doing, I wish we could see your patches 
integrated soon! Thank you both you and John.

Original comment by ekogra...@gmail.com on 15 Jan 2012 at 10:30

GoogleCodeExporter commented 9 years ago
The pataches M has been submitting will be integrated after the 0.5 release. 
Due to the number of patches I plan to do a 0.5.1 release about a month later.

Original comment by john@nachtimwald.com on 15 Jan 2012 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by meme90...@gmail.com on 24 Jan 2012 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by meme90...@gmail.com on 24 Jan 2012 at 7:47

GoogleCodeExporter commented 9 years ago

Original comment by meme90...@gmail.com on 24 Jan 2012 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by john@nachtimwald.com on 28 Jan 2012 at 2:08

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20