core.actions: update preview when changing file in pager