ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
204 stars 8 forks source link

Feature request: Extend selection in Select Content in a certain direction. #2

Open darnn opened 2 years ago

darnn commented 2 years ago

Hi. So, in Select Content, ScanTailor Advanced introduced double-clicking on the image in order to snap the appropriate border of the selection there, which is great. However, I think it would be ideal if it were possible to extend (or shrink, I suppose) the selection using the keyboard, up, down, left or right, so that it snapped to the next point that it could conceivably snap to. For instance, here: sa-snap

You would press some key combination, e.g. ctrl+up, and the upper border would snap upward to the nearest element. Doing this once or twice would select the entirety of the content, without having to locate it with the mouse and click on it. Clicking every time can be particularly time-consuming if, for example, SA fails to select the page numbers on every page, and they are on opposite sides, so that you have to move the mouse to the left, click to snap the selection there, move to the next page, move the mouse to the right and so on.

AlexJacobs1977 commented 2 years ago

I was annoyed by the double click, becauce it doesn't work that great. An alternative method would be welcome: such as automatic snapping of the nearest corner of the select content box to where you click it. It would much smarter then using the current algorithme.