ok/jj
1
0
Fork 0
forked from mirrors/jj

Deployed 2d0b715 to prerelease with MkDocs 1.6.0 and mike 2.1.1

This commit is contained in:
jj-docs[bot] 2024-06-10 18:48:09 +00:00
parent ba972ad77b
commit 93d4cdfc5b
3 changed files with 12 additions and 8 deletions

View file

@ -2482,10 +2482,12 @@ a <code>$</code>):</p>
<p><code>ui.pager</code> &gt; <code>$PAGER</code></p>
<p><code>less -FRX</code> is the default pager in the absence of any other setting, except
on Windows where it is <code>:builtin</code>.</p>
<p>The special value <code>:builtin</code> enables usage of the
<a href="https://github.com/arijit79/minus/">integrated pager</a>. It is likely if you
are using a standard Linux distro, your system has <code>$PAGER</code> set already
and that will be preferred over the built-in. To use the built-in:</p>
<p>The special value <code>:builtin</code> enables usage of the <a href="https://github.com/AMythicDev/minus/">integrated pager called
<code>minus</code></a>. See the <a href="https://docs.rs/minus/latest/minus/#default-keybindings">docs for the <code>minus</code>
pager</a> for the key
bindings and some more details.</p>
<p>If you are using a standard Linux distro, your system likely already has
<code>$PAGER</code> set and that will be preferred over the built-in. To use the built-in:</p>
<div class="highlight"><pre><span></span><code>jj config set --user ui.pager :builtin
</code></pre></div>
<p>It is possible the default will change to <code>:builtin</code> for all platforms in the

File diff suppressed because one or more lines are too long

View file

@ -1375,9 +1375,11 @@ line endings:</p>
converting them to CRLF. You'll want to make sure any tooling you use,
especially IDEs, preserve LF line endings.</p>
<h2 id="pagination">Pagination<a class="headerlink" href="#pagination" title="Permanent link">&para;</a></h2>
<p><a href="https://github.com/martinvonz/jj/issues/2040">Pagination is disabled by default on Windows</a> because Windows
doesn't ship with a usable pager.</p>
<p>If you have Git installed, you can use Git's pager and re-enable pagination:</p>
<p>On Windows, <code>jj</code> will use its integrated pager called <code>minus</code> by default, unless
the environment variable <code>%PAGER%</code> or the config <code>ui.pager</code> is explicitly set.
See the <a href="../config/#pager">pager section of the config docs</a> for more details.</p>
<p>If the built-in pager doesn't meet your needs and you have Git installed, you
can switch to using Git's pager as follows:</p>
<div class="highlight"><pre><span></span><code><span class="n">PS</span><span class="p">&gt;</span> <span class="n">jj</span> <span class="n">config</span> <span class="nb">set </span><span class="p">-</span><span class="n">-user</span> <span class="n">ui</span><span class="p">.</span><span class="n">pager</span> <span class="s1">&#39;[&quot;C:\\Program Files\\Git\\usr\\bin\\less.exe&quot;, &quot;-FRX&quot;]&#39;</span>
<span class="n">PS</span><span class="p">&gt;</span> <span class="n">jj</span> <span class="n">config</span> <span class="nb">set </span><span class="p">-</span><span class="n">-user</span> <span class="n">ui</span><span class="p">.</span><span class="n">paginate</span> <span class="n">auto</span>
</code></pre></div>