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
Qi Xiao
bf2eb50ba8
pkg/elvdoc: Move support of "doc:id" into website/cmd/md2html.
...
Also change the spelling to "doc:html-id" as this is only relevant for HTML outputs.
2024-03-22 15:06:19 +00:00
Qi Xiao
204bf524a7
pkg/elvdoc: Move directives to the top of comment blocks.
...
Also support unknown directives.
2024-03-22 14:55:02 +00:00
Qi Xiao
64efe7305e
Implement completer for "del".
...
This fixes #1774 .
2024-03-22 13:59:58 +00:00
Qi Xiao
b0a1305db1
Trivial cleanups.
2024-03-22 11:20:35 +00:00
Qi Xiao
dfe675a0b4
Fixup for #1769 .
...
- Convert the test to a transcript test.
- Rename the variable to $before-exit and add elvdoc.
- Add TODO about how EvalCfg should always be passed in future.
2024-03-20 15:20:34 +00:00
anb
5138df0b98
trivial wording fix
2024-03-19 15:35:18 +00:00
anb
7c0daa1359
allow user to customize pre-exit hook
...
It is useful when user wants to clean up things that associated with
shell session.
Provide a CallHook internal API for the common usage.
2024-03-19 15:35:18 +00:00
Qi Xiao
490c8da992
Add math:atan2.
...
This fixes #1773 .
2024-03-19 14:49:30 +00:00