[PATCH] hgweb: wrap long lines in file source
Jordi Gutiérrez Hermoso
jordigh at octave.org
Wed Jun 26 17:21:43 UTC 2013
On 26 June 2013 13:07, Laurens Holst <laurens.nospam at grauw.nl> wrote:
> Scrollbar at the bottom is a little inconvenient, sure, but you can also
> scroll horizontally with many mouse wheels, or by middle-clicking and moving
> the cursor to the right, or by moving two fingers to the right on a touch
> pad, or by selecting text and dragging to your right. The scrollbars are
> hardly ever being used any more nowadays.
Do most users know this? If so, do we have evidence that most users
prefer this? If not, are you planning to educate them? Otherwise, do
we have any evidence that users prefer one thing or the other?
> I am not in favour of wrapping the source code, because that can visually
> disturb the indentation.
It's possible to wrap and maintain indentation; e.g. Kate does this,
as does this Emacs package:
https://github.com/emacsmirror/adaptive-wrap-prefix/blob/elpa/adaptive-wrap-prefix.el
I'm not sure how feasible this is for a web interface.
> Emacs and vim aside, editors normally don’t wrap lines
Kate does it, gedit does it, textmate too, but apparently only
whatever editor you use doesn't.
- Jordi G. H.
More information about the Mercurial-devel
mailing list