editor: move toggle-preview command to gb-editor-commands.c