View Single Post
Old 11-17-2019, 07:19 PM   #200
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,939
Karma: 6361444
Join Date: Nov 2009
Device: many
If we use plugins for that we will have to recreate all of the UniversalUpdates code in python. That might be a good thing to have for plugins in the long run anyway.

That said, we could easily add an TrimPrefix Rename menu item and a TrimSuffix Rename menu item and that would ask for the prefix or suffix to trim where Prefix would trim from the left (only if filename actually starts with that prefix), and similarly for a suffix that worked on the filename to the left of the extension.

We could add them to the BookBrowser context menu or to the MainWindow tools menu.

Any interest?

Or alternatively we could use some sort of regular expression based matching to extract the desired name piece.

Last edited by KevinH; 11-17-2019 at 07:21 PM.
KevinH is offline   Reply With Quote