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

Lines extend beyond viewable area for .txt files #1006

Closed
skoobasteeve opened this issue Sep 4, 2020 · 8 comments · Fixed by #1883 or #2057
Closed

Lines extend beyond viewable area for .txt files #1006

skoobasteeve opened this issue Sep 4, 2020 · 8 comments · Fixed by #1883 or #2057
Labels
2. developing bug Something isn't working good first issue Good for newcomers

Comments

@skoobasteeve
Copy link

Describe the bug
Each line in a text file extends infinitely to the right until broken manually by the enter/return key in files with a .txt extension.

To Reproduce
Open existing text file with a .txt extension or start new file and enter an unbroken line of text.

Expected behavior
Lines wrap based on the size of the editor window as they do with .md files.

Screenshots

Web
text-web
text-web2

Android App
text-mobile

Server Info
Nextcloud 19.02

Client Info
Firefox 78-80
macOS, Linux
Nextcloud Android App v3.13.0

@dave-kennedy
Copy link

I'd love to take a stab at fixing this - perhaps adding an option to wrap long lines. I just need to get my head around how the code is organized and whatnot first.

@juliusknorr
Copy link
Member

juliusknorr commented Sep 10, 2020

Yes as discussed with @jancborchardt we should generally wrap lines even in plain text or code files.

@juliusknorr juliusknorr added 1. to develop bug Something isn't working good first issue Good for newcomers labels Sep 10, 2020
@jancborchardt jancborchardt added this to the Nextcloud 21 milestone Oct 6, 2020
@NielBuys

This comment has been minimized.

@juliusknorr

This comment has been minimized.

@alabre
Copy link

alabre commented Jul 14, 2021

Hi there, is there any news on this topic? Running NC 21 still shows the behaviour with the scroll bar, except I missed something in the settings. Without line wrapping the text editor is somewhere between hardly usable and unusable and unfortunately shared .txt files are opened with it by default.

There was a line wrapping before in NC 18, so is it a degression or a feature request to have no line wrapping?
Will line wrapping come back? If so, are there new plans when?

All the best and thank you

@pwnoobz
Copy link

pwnoobz commented Dec 8, 2021

I am sorry if this is fixed. I am on the latest Next Cloud stable version - 22.2.3 and I can confirm having the same problem unless there is an option for word wrap that I'm not seeing. But I'd love to have this behaviour as the default for text files.

@dave-kennedy
Copy link

@pwnoobz this was released with Nextcloud 23. See #1883 and linked milestone.

@azul
Copy link
Contributor

azul commented Jan 5, 2022

This was meant to be backported as it's a bugfix but the backport failed. I'll give it another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants