![]() |
#121 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Quote:
We would store the number of replacements made for every replace all invoked by a "RunSavedSearchReplaceAll" command. Then we would add 2 new commands: OnSuccessRunSavedSearchReplaceAll OnFailedRunSavedSearchReplaceAll These two commands would conditionally run a saved search replace all depending on the number of replacements stored by the last "RunSavedSearchReplaceAll" command. If the number of last search replacements was 0, then a OnFailedRunSavedSearchReplaceAll would work to run its search but a OnSuccessRunSavedSearchReplaceAll would not. If the number of last search replacements was > 0, then a OnFailedRunSavedSearchReplaceAll would *not* run its search but a OnSuccessRunSavedSearchReplaceAll would run its search. Is this enough logic to do what you want? Should the two new commands also set the number of last search replacements made if run? If you could create a small example of how these might be used and why, it would really help me to understand how conditioning on prior search replace all results should be handled. Thanks, |
|
![]() |
![]() |
![]() |
#122 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
I am pretty much up to snuff on new feature requests for Sigil for the next release. So if you have new feature ideas not yet mentioned in this thread, please save them for the future.
Last edited by KevinH; Yesterday at 01:22 PM. |
![]() |
![]() |
![]() |
#123 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,836
Karma: 173906420
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Currently, I run saved search 1, look at the results and if 0, run saved search 2. If both 1 and 2 make no changes, search 3 is not run otherwise it is run. I have a few other search sets that I use in a similar fashion. Rather idiosyncratic and I'm still not sure how many other people would make use of this capability. Another suggestion would be to have the Automation List preference also remove the Quick Launch icons when disabled. Last edited by DNSB; Yesterday at 03:38 PM. |
|
![]() |
![]() |
![]() |
#124 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Quote:
Then turn-off the Automation Menu in Preferences. The QuickLaunch Plugins and shortcuts for them would still work. I thought BetterRed would like that! ![]() |
|
![]() |
![]() |
![]() |
#125 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@DNSB,
So you are okay with that idea. The key is if a conditional search is not run it leaves the last replace count unmodified. If a conditional search is run, it does update the last replacement count. Is that correct? Last edited by KevinH; Yesterday at 04:24 PM. |
![]() |
![]() |
![]() |
#126 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,982
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Because I regard EPUB as a final-form format, like PDF, I don't do any text formatting, so the preset text formatting shortcuts and many others have been set to null. Ditto the calibre editor. BTW: I can't find a response to my suggestions for Metadata edit in post #14 BR Last edited by BetterRed; Yesterday at 08:06 PM. |
|
![]() |
![]() |
![]() |
#127 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
If you are referring to this:
Quote:
To be honest I just missed it. That said, I am not a big fan of context menus attached to individual fields in a treeview. Even BookBrowser which is a treeview only attaches to the virtual folder headers, not elements in the treeview itself. I will look into improving navigation to add a value to a MetaData element without having to arrow down, across, and the up. Maybe we could advance the cursor to that field after adding a Metadata element so typing the value can more easily be done? Let me play around with a few ideas to see if I can make this easier. Maybe the entire MetaEditor could have a pop-up menu whose elements are enabled or disabled based in the currently selected field in the tree? That may be possible, but it would still require a mouse click to launch the popup. Last edited by KevinH; Yesterday at 09:17 PM. |
|
![]() |
![]() |
![]() |
#128 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@BetterRed
The behaviour you describe above about the right arrow when trying to move to a metadata value when it already has properties, must be platform os specific. On a Mac this does not happen. If collapsed (no property showing) the first right arrow expands it (so that I can see the properties) and the second right arrow moves directly to where I want. If it is already expanded, then the first right arrow moves directly to the right one column. I did look at the code and there is a QStyle Hint that seems to be platform specific that may impact this. Not sure if I can change it for the Qt Windows theme without moving to Fusion. I really do not like double usng the right and left arrows as I always felt that a '-' key should collapse the tree entree and a '+' key should expand it. But Qt likes to use right and left arrow keys to handle that instead of just properly navigate the columns with it. I will investigate further. |
![]() |
![]() |
![]() |
#129 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,982
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I regard the context menu issue as an accessibility issue within Sigil itself, whereas the roundabout keyboard navigation to the Element value is an irritant.
Put your mouse away. Tab to the Add Metadata button, press Enter, select Author, now count the tabs you need to press in order get back to the tree to enter an author name… in Windows I count nine, ditto in an elderly Linux Mate. If the actions that the buttons provide were in the tree context menu, I could ignore the buttons. BR Last edited by BetterRed; Yesterday at 11:17 PM. |
![]() |
![]() |
![]() |
#130 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,836
Karma: 173906420
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#131 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Quote:
As I said, your "irritant" does not happen on other platforms? Did you ever try right arrow to expand it followed by a second right arrow? Does that work? |
|
![]() |
![]() |
![]() |
#132 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,982
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Shift+F10 does the same, which I use on my Surface Go and Alien Alpha No, a context menu is almost always better, a) all options are shown, b) any that are not available are greyed out, c) if an option does have a shortcut it is shown… which acts a reminder. Quote:
Open Sigil user guide and press F8, arrow down to Creator: Press → Press → Press → Press ↑ The problem is, as you alluded to before, the → and ← are serving two purposes: 1. to expand and collapse a branch 2: to move between the Name and Value columns. How about using the ↓ and ↑ keys to expand and collapse a branch. Nah, that won't work either… how about Ctrl+→ and Ctrl+← to expand and collapse. BR Last edited by BetterRed; Today at 10:36 AM. |
||
![]() |
![]() |
![]() |
#133 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
Okay I will take a shot at a Context Menu.
As for the "irritant" behaviour is built directly into the QTreeView class so it will take some work to subclass QTreeView and try to control how it work. Work that only seems to need to be done for Windows. I will see if that damn QStyleHint change will work. |
![]() |
![]() |
![]() |
#134 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@DNSB
Okay, I took a shot at adding this and pushed it (up to date with all other changes no matter what github says) to my own personal Sigil repo (kevinhendricks). Please pull from there and build and give it a try. If it does what you want, I will push it to regular Sigil master. If you run into bugs, please let me know. I just tested the edit part but since I had no saved searches ready to go, I did not test the execution part but it should work. Last edited by KevinH; Today at 12:25 PM. |
![]() |
![]() |
![]() |
#135 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,047
Karma: 6361556
Join Date: Nov 2009
Device: many
|
@BetterRed
I took a shot at adding a short context menu to the Metadata Editor entire QTreeView. See the screenshot below. As for your "irritant" it appears to be an real "irritant" to me too as there is no easy way to make Windows work like MaOS without changing its theme. So fixing this irritant may take some work, and might not be part of the next release. Last edited by KevinH; Today at 12:30 PM. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ideas for New Improvements or Features | KevinH | Sigil | 97 | 04-09-2025 09:45 AM |
Suggestions for new Caliber features | DavidlPORTUGAL | Library Management | 3 | 12-10-2023 07:37 AM |
Hello. Where do I make suggestions for future improvements? | spelunker | Sigil | 19 | 02-28-2022 11:46 AM |
Improvements/bugs/features | dontcrash | KOReader | 10 | 10-23-2019 10:05 AM |
Onyx M92: Suggestions for possible improvements | Lode | Onyx Boox | 3 | 02-11-2013 07:40 AM |