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

Ported Text Escape/ Unescape tool #1019

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Ported Text Escape/ Unescape tool #1019

merged 3 commits into from
Jan 24, 2024

Conversation

veler
Copy link
Collaborator

@veler veler commented Jan 9, 2024

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • New feature or enhancement
  • UI change (please include screenshot!)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

DevToys 2.0 doesn't have a Text Escape / Unescape tool yet

Issue Number: #468

What is the new behavior?

Ported the tool from DevToys 1.0 to 2.0. Issue #468 is solved through the fact that DevToys 2.0 has an option to select what end of line character should be used in Settings. Let's start with this for now. If unhappy, we could create an option specifically in this tool.

Other information

image

Quality check

Before creating this PR:

  • Did you follow the code style guideline as described in CONTRIBUTING.md
  • Did you build the app and test your changes?
  • Did you check for accessibility? On Windows, you can use Accessibility Insights for this.
  • Did you verify that the change work in Release build configuration
  • Did you verify that all unit tests pass
  • If necessary and if possible, did you verify your changes on:
    • Windows
    • macOS (DevToys 2.0)
    • Linux (DevToys 2.0)

@veler veler added the devtoys-v2.0 DevToys v2.0 label Jan 9, 2024
@veler veler requested a review from btiteux January 9, 2024 21:26
@veler veler linked an issue Jan 9, 2024 that may be closed by this pull request
Copy link
Collaborator

@btiteux btiteux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with the pull request but we need some Unit Tests on the GUI :)

Before merging this pull request #971 , we have one to add support for Linux escape lines, too. Can we add the support at the same time?

@veler
Copy link
Collaborator Author

veler commented Jan 24, 2024

Hey @btiteux

Before merging this pull request #971 , we have one to add support for Linux escape lines, too. Can we add the support at the same time?

As I said in the PR description, issue #468 (which #971 solves in DevToys 1.0) is solved through the fact that DevToys 2.0 has an option to select what end of line character should be used in Settings. I'd suggest to limit ourselves to this for now and wait for more feedback. The setting I'm referring to above has already been tested on Linux.

image

Another thing I realize I forgot to mention in the PR description is that user can also convert the end of line sequence characters using Text Utilities tool. This is also new in DevToys 2.0.

image

Note that \r (Mac) is not supported by Monaco. Note also that \r on Mac is not supported after Mac OS 9, which DevToys doesn't target anyway.

@veler
Copy link
Collaborator Author

veler commented Jan 24, 2024

we need some Unit Tests on the GUI :)

Done :-)

@btiteux
Copy link
Collaborator

btiteux commented Jan 24, 2024

We can go with the settings for the moment. But I think it's more user friendly to have a list here and that would avoid changing the settings for the whole apps.

@veler
Copy link
Collaborator Author

veler commented Jan 24, 2024

We can go with the settings for the moment. But I think it's more user friendly to have a list here and that would avoid changing the settings for the whole apps.

I ultimately agree :-)

@veler veler merged commit e158745 into dev/2.0 Jan 24, 2024
@veler veler deleted the dev/2.0-escape-unescape branch January 24, 2024 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtoys-v2.0 DevToys v2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Escape tool escapes new-lines as '\r'
2 participants