isaacs / github

Just a place to track issues and feature requests that I have for github
2.2k stars 129 forks source link

Feature Request: allow toggling "soft wrap" on and off when viewing files #1982

Open ElectricRCAircraftGuy opened 3 years ago

ElectricRCAircraftGuy commented 3 years ago

Feature request:

Please add a button to turn on soft text wrap when viewing files, kind of like is already available when editing files on Github online, as shown below.

image

Justification

Here is one of my most-used files in my dotfiles repo: eRCaGuy_dotfiles/git & Linux cmds, help, tips & tricks - Gabriel.txt.

Unfortunately, it's very difficult to read online because it needs soft line wrapping turned on in a text editor to be able to read and make sense of it.

Many code files would also be benefited by soft text wrap, especially when beginners rely on it when writing long, multi-line comments.

T1mL3arn commented 3 years ago

Right now you can press "Raw" button. It will open your file in your browser with wrapped lines (at least that is how Firefox works for me). Though this way removes syntax highlighting.