<div dir="ltr"><div dir="ltr">If you use Atom (<a href="http://atom.io">http://atom.io</a>), you can use the default functionality called Wrap Guide.<div><br></div><div>The wrap guide is fully configurable to your needs on different line lengths (<a href="https://github.com/atom/wrap-guide">https://github.com/atom/wrap-guide</a>).</div><div>The example on the doc shows 4 wrap guides:</div><div><br></div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;margin-bottom:0px;margin-top:0px;background-color:rgb(246,248,250);border-radius:3px;line-height:1.45;overflow:auto;padding:16px;word-break:normal;color:rgb(36,41,46)"><span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span>wrap-guide<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span>
<span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-pl-pds" style="box-sizing:border-box">'</span>columns<span class="gmail-pl-pds" style="box-sizing:border-box">'</span></span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73)">:</span> [<span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">72</span>, <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">80</span>, <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">100</span>, <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197)">120</span>]</pre></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 26, 2019 at 4:32 AM Stephen J. Turnbull <<a href="mailto:turnbull.stephen.fw@u.tsukuba.ac.jp">turnbull.stephen.fw@u.tsukuba.ac.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">David Mertz writes:<br>
<br>
> However, what I care about more than that is my editor. It would be really<br>
> nice if my editor provided something like "vertical folding" for things<br>
> like this. I do not know of any editors that do that, but it would be easy<br>
> to imagine. E.g. I might have an editor display:<br>
> <br>
> url = f'{URL_BASE}&arg1={row["column_*(..93 chars..)*rg17=123456'<br>
> <br>
> Does anyone know of editors that do that sort of thing? Obviously,<br>
> you'd need some way to fold/unfold the hidden text. But for many<br>
> purposes, the first and last few characters probably convey the<br>
> purpose of the line.<br>
<br>
You may not like my answer: Emacs does several kinds of hiding text.<br>
They're not exactly what you ask for, of course, but the tools are<br>
definitely there.<br>
<br>
The only automatic hiding features I use are truncate-lines mode,<br>
which as you might guess hides the tail of the line by default, but<br>
also scrolls only that line if point moves into the hidden tail (as<br>
many browsers do in their address bars), and outline mode, which has a<br>
couple of ways to tweak display (hide non-heading text, hide<br>
subheadings, do either locally or globally). I don't know who<br>
maintains python-mode, but they might be interested in your suggestion<br>
if you're interested in an Emacs feature.<br>
<br>
Whoever maintains python-mode is exceptionally open to wacky (ie,<br>
contra GNUish orthodoxy) ideas, I must say. It's the only mode I use<br>
where RET is bound to newline-and-indent instead of newline, for<br>
example.<br>
<br>
<br>
-- <br>
Associate Professor Division of Policy and Planning Science<br>
<a href="http://turnbull.sk.tsukuba.ac.jp/" rel="noreferrer" target="_blank">http://turnbull.sk.tsukuba.ac.jp/</a> Faculty of Systems and Information<br>
Email: <a href="mailto:turnbull@sk.tsukuba.ac.jp" target="_blank">turnbull@sk.tsukuba.ac.jp</a> University of Tsukuba<br>
Tel: 029-853-5175 Tennodai 1-1-1, Tsukuba 305-8573 JAPAN<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span style="white-space:pre-wrap;font-size:14.6667px"><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="Arial">Vinicius Mesel</font></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="Arial">CEO e Fundador do PyJobs</font></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="Arial"><a href="http://www.pyjobs.com.br" target="_blank">http://www.pyjobs.com.br</a></font></p></span></div></div></div></div></div></div></div></div></div></div></div></div></div>