Intention on multiple selected nodes of same type
[UPDATE] Something similar was asked before - using only that topic: https://mps-support.jetbrains.com/hc/en-us/community/posts/207130005-Surround-with-Region-feature-in-MPS?page=1#community_comment_205078204
I would like to create an intention that works for multiple nodes of the same concept. The idea is to sort of simulate selecting 3 lines of text in a file, and having an operation that works on all the selected nodes.
However, whenever I select more than 1 node in my file, I cannot fire up any intentions. I browsed a bit around but I am not sure what to search for.
Is what I want even possible? Any hint or link to some documentation is appreciated.
Br,
Stefan
Please sign in to leave a comment.
Have you tried Selection Intentions (com.mbeddr.mpsutil.selection.intentions) http://mbeddr.com/platform.html#selectionintentions ?
Thanks. I replied on the other topic that wants to do exactly what I want to do. https://mps-support.jetbrains.com/hc/en-us/community/posts/207130005-Surround-with-Region-feature-in-MPS?page=1#community_comment_205078204
I will post on that one so not to have duplicates.