-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In JSX/TSX is there a way to move up/down XML nodes? #33
Comments
Hey there. That's definitely possible, and not just in the jsx nodes: try |
Hey, thanks for the response. When there are no attributes with |<div className={foo}>
<p className={bar}>Text</p>
</div>
<div className=|{foo}>
<p className={bar}>Text</p>
</div>
<div className={|foo}>
<p className={bar}>Text</p>
</div>
<div className={foo}|>
<p className={bar}>Text</p>
</div>
<div className={foo}>
<p className={|bar}>Text</p>
</div> |
There are some liberties taken with the definition of moving down. Namely, it tries to mimic the default Emacs behaviour of The other liberty is that |
I should definitely document this behaviour better though. |
I see. The issue I have in my example from above is, that you don't ever end up with |
Actually, when I think about it, this is not really limited to XML nodes. It is great to have the behavior as is. But it would be great to also have hierarchical up/down for bigger code structures. I.e.:
|const test = (bla) => {
console.log("test");
}; const test = (bla) => {
|console.log("test");
}; |
Hey, me again. I have been working a lot more on TS React code and I am really missing this feature where I can move inside any XML Tag (with Inside I mean, directly after the opening tag closes) and so on. I totally get that you time is constrained. Sadly my lisp is not the greatest, but maybe you could point me a bit to where best to implement such a behavior and I could give it a go? |
Fixed, as this is specifically one of the things the new navigation DSL resolves. |
Maybe I don't find the function that I'd need to call but what I'd love to have is way to move from
|<div>
to|<p>
(i.e. sexp-down?) and the other way round.I only found ways to go forward and backward. Is this supported, yet? If not, could this be implemented? :)
Thanks for this package, cheers
The text was updated successfully, but these errors were encountered: