Can I snap to the center (midpoint) of an edge? I'm trying to use the center (midpoint) of a particular edge in a mesh as the snap target.

I have two mesh objects. The first has an edge aligned with x axis. The second also has an edge (different length/location) aligned with x axis. I would like to align the two objects constrained to x axis: so that the center of the edge in the first mesh snaps to the center of the edge in the second mesh (see image).



I used this feature a lot in 3DS Max and can't figure out how to do it in Blender. I'm looking for a quick way since I'd really use this a lot. Preferably a way that can be used in object mode as well as in edit mode with an island of faces.
Using the snap to function it's quite easy.

In edit mode select the edge you want to align to, then press ShiftS and select cursor to selected. The 3D cursor will be placed in the middle of your selected edge.

Back in object mode select your second mesh and do ShiftS and select selection to cursor your object will then move to where the cursor is.

From there you can move the 2nd mesh using GY so it only moves on the Y axis.