RemafoX icon indicating copy to clipboard operation
RemafoX copied to clipboard

[Feat] Support for Swift multiline strings

Open NickAtGit opened this issue 2 years ago • 3 comments
trafficstars

Problem Statement

Remafox does not support multiline strings yet.

let myString = 
"""
My long text
foobar baz bar
"""

NickAtGit avatar Mar 23 '23 14:03 NickAtGit

@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?

Jeehut avatar Mar 23 '23 14:03 Jeehut

Correct @Jeehut. Right now RemafoX just opens but doesn't show a string in the UI.

NickAtGit avatar Mar 23 '23 14:03 NickAtGit

@NickAtGit Thank you for the clarification. All clear now. 👍

In the meantime, you can use the following workflow:

  1. Mark the text excluding the """ at the beginning and end, use Cmd + X to cut the marked text.
  2. Delete the multi-line String literal surroundings (the two """) and leave the cursor where the beginning was.
  3. 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".

Jeehut avatar Mar 23 '23 14:03 Jeehut