Skip to content

[Feature Request] Add a formatting option to keep long text without line breaks. #222

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

Closed
2 tasks done
WhenMelancholy opened this issue Feb 2, 2025 · 11 comments · Fixed by #223
Closed
2 tasks done
Assignees
Labels
feature request Request for new feature

Comments

@WhenMelancholy
Copy link

WhenMelancholy commented Feb 2, 2025

Disclaimer

Please make sure all the items below is checked (i.e., prefixed with "- [x]")

  • The request feature has not been addressed in the feature request list.
  • The design of the feature does not require detailed discussion, or existing discussion with drawn conclusion can be found in Discussions Area at: [paste the link here]

Motivation

Please give strong enough reason(s) why the feature is demanded.

The current formatting approach in overleaf-workshop doesn't work well with grammar checking plugins like Grammarly.

Feature Description

A clear and concise description of what you want to happen under what circumstance.

Add relevant options to allow formatting without forcing line breaks for long text, keeping it on a single line instead.

@WhenMelancholy WhenMelancholy added the feature request Request for new feature label Feb 2, 2025
@iamhyc
Copy link
Owner

iamhyc commented Feb 4, 2025

@QianrenLi Qianren, please have a look at it if you have time.

@Force1ess
Copy link

Force1ess commented Feb 7, 2025

I encountered this issue as well. Adding support for this feature would improve the functionality and user experience.

@Force1ess
Copy link

By the way, I found that formatting the entire document always introduces failure in syncing, resulting to the order of words is disrupted.
Maybe formatting entire document should be disabled

@fgavioli
Copy link

If I understood correctly what you're looking for is a way to visually wrap the text in the editor without introducing line breaks.

If this is the case i generally use the "Toggle word wrap" option in vscode. You can easily toggle it on the command palette.

@WhenMelancholy
Copy link
Author

If I understood correctly what you're looking for is a way to visually wrap the text in the editor without introducing line breaks.

If this is the case i generally use the "Toggle word wrap" option in vscode. You can easily toggle it on the command palette.

Yes, the "Toggle Word Wrap" option can wrap text without actually inserting new line breaks. However, the current problem is that Overleaf Workshop keeps forcing line breaks, and there’s no option to disable that formatting😂.

@QianrenLi
Copy link
Collaborator

Hi @WhenMelancholy, sorry for the late.
Please try this update to see if this works for you, where an additional setting is provided as following.

Image

@WhenMelancholy
Copy link
Author

Hi @WhenMelancholy, sorry for the late. Please try this update to see if this works for you, where an additional setting is provided as following.

Image

Hi @QianrenLi, thanks for updating! I can use this extension to format files without forcing line breaks. However, I’ve noticed that the current formatting now automatically indents the elements inside \begin{document} … \end{document}. Is there a way to adjust this behavior? Many thanks!

@QianrenLi
Copy link
Collaborator

Currently, this feature is not available.
However, if you believe it would be a valuable addition, please feel free to open a new issue about it.

@krokosik
Copy link

Has this been released? I would also like to disable forced line breaks

@iamhyc
Copy link
Owner

iamhyc commented Mar 23, 2025

@QianrenLi Please check if PR #223 is ready for review. I can check it at night.

@WhenMelancholy
Copy link
Author

Hi may I ask has this version released?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request Request for new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants