facebook / facebook/TestSlide

[snippets] Add text block replacements

Open
#226 0 comments 0 reactions 0 assignees View on GitHub
easy enhancement
Dominant language
Python
Stars
149
Forks
62
PR merge metrics
No merged PRs in 30d

Description

It would be nice to have some snippets to help refactor class-based tests to dsl-based tests, using text block selection.

From #223:

> It may make sense to use the TM_SELECTED_TEXT fragment in things like the snippet for creating an example. Someone might be porting an existing block of code, and if they've selected some text - Ctrl-Shift-P, Insert Snippet, arrow key to relevant snippet - will let them just wrap the selection. It takes a default, so you can do ${TM_SELECTED_TEXT:default_if_no_selection}.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.