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

Horizontal scrolling in text files #313

Open
michael-lazar opened this issue Jul 18, 2021 · 1 comment
Open

Horizontal scrolling in text files #313

michael-lazar opened this issue Jul 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@michael-lazar
Copy link

Hi!

I have the setting "wrap plain text: no" turned on in order to view .txt files containing ASCII art and other preformatted text documents. It would be helpful to be able to horizontally scroll text files in this mode, the same way that scrolling works in preformatted text blocks.

In a similar vein, I would also suggest that not wrapping plain text files should be the default setting, since they're almost always hard wrapped and will look weird unless you apply a reflowing algorithm.

Here's an example link for reference

gemini://ascii.mozz.us:7070/mirrors/incredibleart/files/scarecrow_sig_files.txt

@skyjake skyjake modified the milestone: v1.6 Jul 18, 2021
@skyjake skyjake added the enhancement New feature or request label Jul 18, 2021
@skyjake
Copy link
Owner

skyjake commented Jul 18, 2021

I agree. However, the current situation is basically a compromise. The scrollable document view in Lagrange has been implemented only for vertical scrolling, which means that long lines would not be viewable at all in the app without breaking the lines.

Enabling horizontal scrolling right now would lead to very inefficient drawing. I'm not particularly happy with the partial solution for scrolling wide preformatted runs, as that introduces quite a bit of complexity in to the system (#44).

I will likely end up rethinking how the document view works so it can scroll both ways without a large performance penalty.

@skyjake skyjake changed the title [Feature Request] Horizontal scrolling in text files Horizontal scrolling in text files Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants