Snapping in editor mode

Work in progress