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

Text inspector position doesn't count newlines #1475

Open
davidwengier opened this issue Dec 12, 2024 · 0 comments
Open

Text inspector position doesn't count newlines #1475

davidwengier opened this issue Dec 12, 2024 · 0 comments

Comments

@davidwengier
Copy link

Current behavior

When using the text inspector for multi-line strings, the "Position" indicator on the right panel doesn't count newlines, which can be misleading, particularly in very long strings where it is not obvious.

How to reproduce it (as minimally and precisely as possible)

  1. Go to Text Case Converter and Inspector
  2. Type or paste in a multi line string
  3. Observe the Position info

Expected behavior

If the first line of the string in the example image has a \n line ending, then position should be 7, and with a \r\n line ending it should be 8.

It would probably be best to add a new piece of information, like "Position (incl. newlines)" so users expecting the current behaviour are still happy, but simpletons like me don't lose half an hour thinking his code is producing the wrong positions :)

Screenshots

image

Workaround

No response

Affected platforms

Linux, macOS, Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 1.0.14.0 | X64 | RELEASE | 3ad0ff2 | 3ad0ff2

Relevant Assets/Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant