Select commands on visible objects in a viewport

using select commands like, selhatch, selcol, selsrf etc. can they be applied only to the objects visible in the active viewport?

i know i could build a macro, selvisible-enter-invert-lock or so, but that would be slow for large drawings with many objects.

I think an option for all “sel” commands to only work on the geometry in the active viewport would be very helpful for drafting.

maybe it is possible already?