SolitudeSF
98ddd450f7
Exclude _
from double argument checking
2024-05-03 18:38:51 +01:00
Qi Xiao
a03125e10e
pkg/edit: Remove elvdoc for edit:completion:close, which no longer exists.
2024-05-03 15:19:10 +01:00
Qi Xiao
2f9f2fa3e4
website/ref/edit.md: Document that some keys may not be available from the terminal.
2024-05-03 15:17:09 +01:00
Qi Xiao
57078f79be
pkg/edit: Fix crash in edit:complete-filename when given no arguments.
...
This fixes #1799 .
2024-05-03 14:56:40 +01:00
Qi Xiao
1aeb2f6e98
pkg/eval: Link to the upvalue explanation from the doc of "eval".
...
Also make the upvalue explanation its own subsection.
2024-05-02 21:00:35 +01:00
Qi Xiao
c7d81b20a0
pkg/eval: Minor fixup for #1796 .
2024-04-30 15:54:58 +01:00
Qi Xiao
6ee80589be
website/get/default-shell.md: Fix gdb workaround example.
2024-04-30 15:53:41 +01:00
jeff hu
0b6cae04c5
Catch error when dup names found in the lambda
2024-04-30 15:53:18 +01:00
Qi Xiao
8cc1fa6546
website/ref/language.md: Add missing str: to has-suffix in example.
2024-04-30 10:29:25 +01:00
Qi Xiao
a31f7d5e56
website/get: Document how to work around gdb issues when using Elvish as login shell.
...
This addresses #1795 .
2024-04-28 18:03:10 +01:00
topazus
0c50cc8f1e
Add installation doc for Fedora
2024-04-25 22:33:35 +01:00
Qi Xiao
51a759dde1
Fixup for #1792 .
2024-04-23 14:02:38 +01:00
dann-merlin
0af84e6ccf
Improve error messages for failed plugin loads ( #1792 )
...
* Improve error messages for failed plugin loads
* Fix linter checks
---------
Co-authored-by: Merlin Sievers <merlin.sievers@posteo.net>
2024-04-23 13:48:08 +01:00
Qi Xiao
47935ca479
Format pkg/pprof/pprof.go.
2024-04-22 21:22:31 +01:00
guangwu
ed758260bb
fix: close cpu profile ( #1791 )
2024-04-22 16:08:56 +01:00
Qi Xiao
d853d06f78
Fixup for #1789 .
2024-04-22 16:01:52 +01:00
anb
48d2678c70
add a check to prevent setting edit:-dot to a out of boundary value
...
It will throw an error when attempting to set such a value to the dot.
2024-04-22 15:56:14 +01:00
Tomas
806d07aa52
Fix typo in value-types.md
2024-04-10 13:11:23 +01:00
Qi Xiao
9ba1cf452c
pkg/eval: Support big ints as arguments to randint.
...
This addresses #1731 .
2024-04-10 12:08:29 +01:00
goodfirm
e3bf7189dd
chore: fix function names in comment
...
Signed-off-by: goodfirm <fanyishang@yeah.net>
2024-04-10 11:10:58 +01:00
Duncan Giles
14380bc74d
loop docs typo
2024-04-10 10:59:18 +01:00
Qi Xiao
abbf9c6d87
pkg/eval: Support big ints as arguments to %.
...
This addresses #1731 .
2024-04-09 12:06:18 +01:00
Qi Xiao
081455fc49
website: Link to get/default-shell.html from ref/command.html.
...
This addresses #694 .
2024-04-09 11:02:41 +01:00
Duncan Giles
5d23cc861d
fix typos
2024-04-02 10:52:17 +01:00
Duncan Giles
0898cc7403
formatting
2024-04-02 10:51:47 +01:00
Duncan Giles
f0590d9b0c
use anchor
2024-04-02 10:51:47 +01:00
Duncan Giles
422f551986
exception capture link
2024-04-02 10:51:47 +01:00
Qi Xiao
1b1d8e276c
website/ref: Use a concrete command in the combined output-exception capture example.
...
The command relies on the failing command outputting a single value.
This addresses #1780 .
2024-04-01 22:26:37 +01:00
Qi Xiao
1d45b6e9ed
website/ref: Add examples for try from #1783 by @Duncan3142.
2024-04-01 22:12:45 +01:00
Qi Xiao
b0abf3cb11
website/ref: Expand the doc on ~ and : as part of variable names.
...
- Mention them in notes of the metacharacters section (originally proposed in
#1781 by @marco-m).
- Add a new subsection for qualified names.
- Add examples of the correspondance between command foo and variable $foo~.
2024-04-01 21:46:54 +01:00
Qi Xiao
0fc462b69a
pkg/eval: Require "catch" when using "else" in the try command.
...
This addresses the comment raised in #1782 .
2024-04-01 20:54:12 +01:00
Duncan Giles
943e15dfc5
try / else docs
...
Clarify code examples regarding required catch or finally when using else
2024-04-01 20:46:07 +01:00
Qi Xiao
fa43bb3120
website/style.css: Set default colors explicitly.
2024-03-27 14:03:25 +00:00
Qi Xiao
369d8ad58b
README.md: Fix link to Telegram group
...
The Elvish Telegram group used to be a public room with name “elvish”, but it was changed to be invite-only and the old name is now used by another room.
2024-03-24 09:01:31 +00:00
Qi Xiao
2d6f68a557
pkg/eval: More doc fixes.
2024-03-23 18:16:20 +00:00
Qi Xiao
301e39420e
pkg/eval: Fix "see also" links.
...
Also some minor rewording.
2024-03-23 18:13:38 +00:00
Qi Xiao
60b5a029ce
Expand the docs for styledown a bit.
2024-03-23 18:10:55 +00:00
Qi Xiao
0d71d58f7e
pkg/ui/styledown: A simple DSL for styled text.
...
This is similar in spirit to the existing ui.MarkLines, except that it's
entirely text-based.
2024-03-23 17:52:44 +00:00
Qi Xiao
4c2e5e78a4
pkg/ui: Change Repr of Segment and Text.
...
- Make the Repr of Segment actually match how it is constructed in Elvish code.
- Use a "^styled" tag for the Repr of Text.
2024-03-23 17:29:29 +00:00
Qi Xiao
de0ab3cd3f
pkg/eval: Fix test.
2024-03-23 10:42:34 +00:00
Qi Xiao
22e8a892fd
pkg/eval/evaltest: Change //skip to //skip-test.
...
This directive appears in .elv files, so "skip-test" is clearer.
2024-03-23 10:37:54 +00:00
Qi Xiao
6c55511956
pkg/eval: Test most .d.elv files, and fix many examples.
...
Also rewrite some docs, notably that of printf.
2024-03-23 10:37:54 +00:00
Qi Xiao
e58896f3e7
pkg/mods/md: Test the .d.elv file.
2024-03-23 09:33:35 +00:00
Qi Xiao
834edf738b
pkg/elvdoc: Suppress comment/directive lines when highlighting transcripts.
2024-03-22 20:13:24 +00:00
Qi Xiao
a86b79cf95
Enable more .d.elv files in transcript tests.
2024-03-22 20:07:12 +00:00
Qi Xiao
250110d359
pkg/eval/evaltest: Move the godoc to the package level.
...
Headings don't render well on godoc for symbols.
2024-03-22 20:06:39 +00:00
Qi Xiao
d54793dd1e
pkg/mods/math: Enable transcript tests for math.d.elv.
...
Also fix incorrect example outputs.
The tests are only enabled on amd64 and arm64 because the exact outputs could
depend on the CPU (see d3e802e536
for a similar
fix).
2024-03-22 19:48:00 +00:00
Qi Xiao
4b9a097f54
Support running transcript tests from .elv files too.
2024-03-22 19:47:53 +00:00
Qi Xiao
fad5f3f5c1
pkg/transcript: Support file- and symbol-level directives in .elv files.
2024-03-22 17:51:56 +00:00
Qi Xiao
746ac02842
pkg/elvdoc: Support file-level block.
2024-03-22 17:21:56 +00:00