You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A combination of unwrap, extend selection and wrap with what was previously removed by unwrapping. Afaik Paredit has a similar feature, sth like "barfing". Should look into it. Some examples
Examples
Ternary
In
a ? fn(≤b≥) : c
Out
fn(≤a ? b : c≥)
Array
In
{a: [≤b≥], c }
Out
[≤{a: b, c }≥]
Function Call
In
a ? f(≤b≥,c) : d
Out
f(a ? b : d,c)
In
a ? f(b,≤c≥) : d
Out
f(≤b,a ? c : d≥)
JSX
In
<ErrorBoundaryfallback={<>An error occurred while searching. We are looking into it!</>}>{term&&results&&≤<SearchResults{...{ term, results }}/>≥}</ErrorBoundary>;
Out
{term&&results&&(<ErrorBoundaryfallback={<>An error occurred while searching. We are looking into it!</>}><SearchResults{...{ term, results }}/></ErrorBoundary>);}
¿Double Pop?
This one is a bit more involved, and maybe it's better solved with multi-selections, which Tofu can't do yet.
In
({a: t ? ≤1≥ : 2,b: t ? ≤"y"≥ : "n"});
Out
t ? {a: 1,b: "y"} : {a: 2,b: "n"};
The text was updated successfully, but these errors were encountered:
A combination of unwrap, extend selection and wrap with what was previously removed by unwrapping. Afaik Paredit has a similar feature, sth like "barfing". Should look into it. Some examples
Examples
Ternary
In
Out
Array
In
Out
Function Call
In
Out
In
Out
JSX
In
Out
¿Double Pop?
This one is a bit more involved, and maybe it's better solved with multi-selections, which Tofu can't do yet.
In
Out
The text was updated successfully, but these errors were encountered: