Gumball is cool, but this is for the use case where you have a reference point on another object that you want to move the object in question to, but only in one dimension. As far as I know, gumball can only move by specified amounts or drags, not directly to a reference point.
“snappy dragging” … see in the gumball menu / click on the bunny-tail …
there is also _move and _copy both have a vertical option.
“move in x” will become move vertical to right (YZ-Plane) construction plane.
you can “macro” it by setting the cplane, calling _move _vertical _pause … and reset the cplane.
Another way to accomplish this is by using point filters.
A trick to using point filters is to set the degrees of freedom that should not change to the from point before picking the to point. For example, if the object(s) should only move along the X axis, the macro can be:
_Move _Pause _Pause _.yz @0,0
In this case, the _.yz @0,0 locks the translation in the YZ plane.