Skip to content

Commit f736454

Browse files
author
committed
[skip ci]
1 parent 0b28ff6 commit f736454

8 files changed

Lines changed: 106 additions & 87 deletions

File tree

api/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,6 +3050,7 @@ <h3 id="replonoutputlogged"><code>repl.onOutputLogged()</code><a class="headerli
30503050
<span class="w"> </span><span class="nx">replSessionKey?</span><span class="o">:</span><span class="w"> </span><span class="kt">string</span><span class="p">;</span><span class="w"> </span><span class="c1">// The REPL session key (e.g. &quot;clj&quot;, &quot;cljs&quot;), when applicable</span>
30513051
<span class="p">}</span>
30523052
</code></pre></div>
3053+
<p>Calva emits exactly one <code>evaluatedCode</code> message per evaluation. For <code>repl.evaluate()</code>, that message is independent of <code>calva.evaluationSendCodeToOutputWindow</code>, and the visible copy of the evaluated code goes to the configured eval-results destination. The setting now only controls the extra REPL Window echo used by manual/UI evaluations.</p>
30533054
<h3 id="replevaluatecode-deprecated"><code>repl.evaluateCode()</code> <em>(deprecated)</em><a class="headerlink" href="#replevaluatecode-deprecated" title="Permanent link">#</a></h3>
30543055
<div class="admonition warning">
30553056
<p class="admonition-title">Deprecated</p>

custom-commands/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ <h1 id="custom-repl-commands">Custom REPL Commands<a class="headerlink" href="#c
22922292
<li><code>key</code>: A key can be used to reference the snippet from <strong>Run Custom REPL Command</strong> keyboard shortcut arguments. It will also be used in the quick-pick menu.</li>
22932293
<li><code>ns</code>: A namespace to evaluate the command in. If omitted the command will be executed in the namespace of the current editor.</li>
22942294
<li><code>repl</code>: Which repl session to use for the evaluation. Either <code>"clj"</code> or <code>"cljs"</code>. Omit if you want to use the session of the current editor.</li>
2295-
<li><code>evaluationSendCodeToOutputWindow</code>: (default <code>true</code>) Whether the evaluated code should be echoed to the Output/REPL window.</li>
2295+
<li><code>evaluationSendCodeToOutputWindow</code>: (default <code>true</code>) Whether the evaluated code should also be echoed to the configured output destination for results.</li>
22962296
</ul>
22972297
<p>There are also substitutions available, which will take elements from the current state of Calva and splice them in to the text of your command before executing it. They are</p>
22982298
<ul>

getting-started/index.html

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,21 @@
425425
</span>
426426
</a>
427427

428-
</li>
429-
430-
<li class="md-nav__item">
431-
<a href="#create-a-mini-clojure-project" class="md-nav__link">
428+
<nav class="md-nav" aria-label="Clojure Resources">
429+
<ul class="md-nav__list">
430+
431+
<li class="md-nav__item">
432+
<a href="#create-a-try-clojure-starter-project" class="md-nav__link">
432433
<span class="md-ellipsis">
433-
Create a mini Clojure project
434+
Create a Try Clojure starter project
434435
</span>
435436
</a>
436437

438+
</li>
439+
440+
</ul>
441+
</nav>
442+
437443
</li>
438444

439445
<li class="md-nav__item">
@@ -2292,15 +2298,21 @@
22922298
</span>
22932299
</a>
22942300

2295-
</li>
2296-
2297-
<li class="md-nav__item">
2298-
<a href="#create-a-mini-clojure-project" class="md-nav__link">
2301+
<nav class="md-nav" aria-label="Clojure Resources">
2302+
<ul class="md-nav__list">
2303+
2304+
<li class="md-nav__item">
2305+
<a href="#create-a-try-clojure-starter-project" class="md-nav__link">
22992306
<span class="md-ellipsis">
2300-
Create a mini Clojure project
2307+
Create a Try Clojure starter project
23012308
</span>
23022309
</a>
23032310

2311+
</li>
2312+
2313+
</ul>
2314+
</nav>
2315+
23042316
</li>
23052317

23062318
<li class="md-nav__item">
@@ -2390,8 +2402,13 @@ <h2 id="clojure-resources">Clojure Resources<a class="headerlink" href="#clojure
23902402
<li><a href="https://clojurescript.org/guides/quick-start">ClojureScript Quick Start</a></li>
23912403
</ul>
23922404
<p>There are also many great books on Clojure. <a href="https://www.braveclojure.com/clojure-for-the-brave-and-true/">Clojure for the Brave and True</a> can be read for free online. It is a great resource for beginners.</p>
2393-
<h2 id="create-a-mini-clojure-project">Create a mini Clojure project<a class="headerlink" href="#create-a-mini-clojure-project" title="Permanent link">#</a></h2>
2394-
<p>When you are more familiar with Calva, and want a standalone REPL, there is a separate command: <strong>Calva: Create a mini Clojure project</strong>. It will ask for folder to create the project in, and open this project for you, connecting the REPL. This project only contains one source file and has no build tooling. For creating more “real” project starters, we recommend using <a href="https://github.com/seancorfield/deps-new">deps-new</a>, by sSean Corfield.</p>
2405+
<h3 id="create-a-try-clojure-starter-project">Create a Try Clojure starter project<a class="headerlink" href="#create-a-try-clojure-starter-project" title="Permanent link">#</a></h3>
2406+
<p>If you want a minimal local project to poke around in (rather than the guided REPL above), use the command <strong>Calva: Create a </strong>Try Clojure<strong> project</strong>.</p>
2407+
<ul>
2408+
<li>It stages the “official” <a href="https://github.com/clojure/try-clojure">https://github.com/clojure/try-clojure</a> project and adds some few Calva settings.</li>
2409+
<li>Only Java required</li>
2410+
</ul>
2411+
<p>For creating more “real” project starters, we recommend using <a href="https://github.com/seancorfield/deps-new">deps-new</a>, by Sean Corfield.</p>
23952412
<h2 id="dram-where-the-guides-live">Dram - Where the Guides Live<a class="headerlink" href="#dram-where-the-guides-live" title="Permanent link">#</a></h2>
23962413
<p>The command for starting the Getting Started REPL will download the files from <a href="https://github.com/BetterThanTomorrow/dram">this repository</a>. It is very much work in progress, and there is not even a finished Clojure Beginner's Guide there yet. When you run the command again, and from then on, you will get the option to download new files or keep using your existing. Downloading new ones will not overwrite your existing ones, because they will be downloaded to a new temp directory. You can find the directory easily using VS Codes context menu command for revealing a file in the Explorer/Finder.</p>
23972414
<h2 id="one-last-thing">One Last Thing<a class="headerlink" href="#one-last-thing" title="Permanent link">#</a></h2>

output/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,10 +2292,10 @@ <h2 id="output-destinations">Output Destinations<a class="headerlink" href="#out
22922292
</ul>
22932293
<p>With the setting <code>calva.outputDestinations</code>, you can configure where each category of output should go to. These are the allowed values and their descriptions:</p>
22942294
<ul>
2295-
<li><code>"repl-window"</code> - The <a href="../repl-window/">REPL Window</a> (an editor-based read/write output view). This is the default value.</li>
2296-
<li><code>"output-view"</code> - The <a href="../output-view/">output view</a> (a read-only view that is much more performant than the REPL Window)</li>
2297-
<li><code>"output-channel"</code> - The <em>Calva Says</em> Output Channel</li>
2298-
<li><code>"terminal"</code> - The <em>Calva Output</em> (pseudo) Terminal</li>
2295+
<li><code>"terminal"</code> - The <em>Calva Output</em> (pseudo) Terminal. This is the default value.</li>
2296+
<li><code>"repl-window"</code> - The <a href="../repl-window/">REPL Window</a> (an editor-based read/write output view).</li>
2297+
<li><code>"output-view"</code> - The <a href="../output-view/">output view</a> (a read-only view that is much more performant than the REPL Window).</li>
2298+
<li><code>"output-channel"</code> - The <em>Calva Says</em> Output Channel.</li>
22992299
</ul>
23002300
<p>The reason there are several options for this is partly legacy and partly because VS Code restricts the placement of
23012301
different views in different ways. We hope you will find a combination of output destinations that suits you.</p>

repl-window/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,6 +2486,7 @@ <h1 id="the-repl-windowfile">The REPL Window/File<a class="headerlink" href="#th
24862486
<p>The first prompt is from when the <code>clj</code> REPL is connected, and the second from <code>cljs</code>. The first <em>part</em> of the prompt tells you which REPL type the window is currently connected to.</p>
24872487
<h2 id="using-the-repl-window-for-output">Using the REPL Window for output<a class="headerlink" href="#using-the-repl-window-for-output" title="Permanent link">#</a></h2>
24882488
<p>By default the REPL Window doubles as the place where Calva sends output like stdout/stderr and other messages. See <a href="../output/">Calva Output</a> for more about this and how to change this behaviour.</p>
2489+
<p>If you want manual evaluations to also echo the code itself there, use the <code>calva.evaluationSendCodeToOutputWindow</code> setting.</p>
24892490
<h2 id="finding-the-repl-window">Finding the REPL Window<a class="headerlink" href="#finding-the-repl-window" title="Permanent link">#</a></h2>
24902491
<p>If you quickly want to open and/or switch to the REPL Window there is the command <strong>Calva: Show/Open REPL Window</strong>, <code>ctrl+alt+o r</code>.</p>
24912492
<p>To sync the REPL window namespace with the current file before switching, use the <strong>Switch Namespace of the REPL Window to Current Namespace</strong> command, <code>ctrl+alt+c alt+n</code>.</p>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)