Add selection coordinates to command exec parameters - [opened]
On GitLab by @pcy on Jun 30, 2022, 18:51
Merges selection-exec-params -> develop
This series of two commits adds the parameters $X1, $Y2, etc. to the parameters available to a shell command.
This is quite useful as this allows one to create a keybinding that will cryptographically sign the document using several types of government-issued ID cards using e.g. pyHanko. These types of signatures need to be placed at certain coordinates on the PDF document (as opposed to eg. PGP signatures), and are the only type of signatures governments etc. will typically acknowledge (also unlike PGP signatures). An example of this usage can be found here.
The first commit adds two API functions that expose the selection rectangle coordinates to a page, so I could use those in the second commit. I'm not sure if this is the best place to add these two functions or if there's a better way to do this, input is welcome there.
On GitLab by @pcy on Nov 28, 2022, 24:54
Hm, looks like !59 completely changed how selecting things works, which more or less breaks the intention of this addition (it generally wants a region of empty space to be selected to place a digital signature in). Not sure what to do now.
Sorry for the long delay. For this use case it makes more sense to not abuse test selection but to add an additional mode to select a region. Thereby conflicts with other changes could be avoided.