RemafoX
RemafoX copied to clipboard
[Feat] Support for Swift multiline strings
trafficstars
Problem Statement
Remafox does not support multiline strings yet.
let myString =
"""
My long text
foobar baz bar
"""
@NickAtGit Thank you for reporting this! This feature makes a lot of sense.
Just to be clear, what you're talking about is the workflow of marking the text (in this case including the three """) and then triggering the shortcut to add a translation for the marked String, right?
Correct @Jeehut. Right now RemafoX just opens but doesn't show a string in the UI.
@NickAtGit Thank you for the clarification. All clear now. 👍
In the meantime, you can use the following workflow:
- Mark the text excluding the
"""at the beginning and end, useCmd + Xto cut the marked text. - Delete the multi-line String literal surroundings (the two
""") and leave the cursor where the beginning was. - Trigger the shortcut now and simply paste the cut text from clipboard into the source translation text field.
I hope this helps for now, but of course, this should "just work".