Implement :group for local mode

cc @pkozikow @mapstrchakra