Skip to content
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

[Feat] Support for Swift multiline strings #91

Open
NickAtGit opened this issue Mar 23, 2023 · 3 comments
Open

[Feat] Support for Swift multiline strings #91

NickAtGit opened this issue Mar 23, 2023 · 3 comments
Assignees
Labels
Feature Request New functionality the app doesn't provide yet

Comments

@NickAtGit
Copy link

NickAtGit commented Mar 23, 2023

Problem Statement

Remafox does not support multiline strings yet.

let myString = 
"""
My long text
foobar baz bar
"""
@Jeehut
Copy link
Member

Jeehut commented Mar 23, 2023

@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 Jeehut self-assigned this Mar 23, 2023
@Jeehut Jeehut added the Feature Request New functionality the app doesn't provide yet label Mar 23, 2023
@NickAtGit
Copy link
Author

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

@Jeehut
Copy link
Member

Jeehut commented Mar 23, 2023

@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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New functionality the app doesn't provide yet
Projects
None yet
Development

No branches or pull requests

2 participants