Skip to content

Instantly share code, notes, and snippets.

@trevorparscal
Created November 17, 2014 22:16
Show Gist options
  • Save trevorparscal/92ccdc4c49ab033d9ba8 to your computer and use it in GitHub Desktop.
Save trevorparscal/92ccdc4c49ab033d9ba8 to your computer and use it in GitHub Desktop.
# Execute this in the root of the mmv repo
# Find and replace script symbols
find resources/mmv -name \*.js -exec sed -i '' \
-e 's/TextInputMenuWidget/TextInputMenuSelectWidget/g' \
-e 's/MenuWidget/MenuSelectWidget/g' \
-e 's/MenuItemWidget/MenuOptionWidget/g' \
-e 's/MenuSectionItemWidget/MenuSectionOptionWidget/g' \
-e 's/OutlineWidget/OutlineSelectWidget/g' \
-e 's/OutlineItemWidget/OutlineOptionWidget/g' \
-e 's/contextMenuWidget/contextSelectWidget/g' \
-e 's/contextItemWidget/contextOptionWidget/g' \
-e 's/textInputMenuWidget/textInputMenuSelectWidget/g' \
-e 's/menuWidget/menuSelectWidget/g' \
-e 's/menuItemWidget/menuOptionWidget/g' \
-e 's/menuSectionItemWidget/menuSectionOptionWidget/g' \
-e 's/outlineWidget/outlineSelectWidget/g' \
-e 's/outlineItemWidget/outlineOptionWidget/g' {} +
# Find and replace style symbols
find resources/mmv -name \*.less -exec sed -i '' \
-e 's/textInputMenuWidget/textInputMenuSelectWidget/g' \
-e 's/menuWidget/menuSelectWidget/g' \
-e 's/menuItemWidget/menuOptionWidget/g' \
-e 's/menuSectionItemWidget/menuSectionOptionWidget/g' \
-e 's/outlineWidget/outlineSelectWidget/g' \
-e 's/outlineItemWidget/outlineOptionWidget/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment