nextcloud / nextcloud/text

Toggle for plaintext wrapping.

Open
#2,290 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement high
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

When using plain text files users should be able to decide if they want lines to be wrapped or not. This should be implemented using a toggle. The toggle state could be remembered in the browser storage.

Either wrapping or not wrapping will not work for everyone or every file type / content. Having a toggle is quite common for a text editors.
Originally posted by @juliushaertl in https://github.com/nextcloud/text/issues/1407#issuecomment-1093018583

We also do not have a menubar in plaintext view so the ui is fairly simple anyway.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the plaintext view and the existing line-wrapping behavior in the JavaScript application. Add a toggle that switches wrapping on and off, persists its state in browser storage, and verify that the setting is retained when reopening plaintext files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.