edit snippets and key binding