Kurtis Rader
bf04fae352
Improve the path: module documentation
...
This change is due to a recent IM discussion wherein someone had
difficulty finding the `path:is-regular` command. It attempts to make
such discovery easier.
2021-11-28 21:13:46 +00:00
Qi Xiao
6ea9753769
website: Update documentation for numbers.
...
* Note that the "010" syntax for octal numbers is subject to change.
* Fix typo "separately" -> "separated".
* Add an additional example for use of underscores.
2021-11-23 23:25:36 +00:00
Qi Xiao
388ac81a8c
Only run the check_website action when pushing to master.
2021-11-22 12:34:21 +00:00
Qi Xiao
4df04d7cd4
Support omitting $low in randint.
...
Like range, it defaults to 0 when omitted.
2021-11-20 15:07:26 +00:00
Qi Xiao
6a5619b01e
Simplify the doc for randint.
2021-11-20 14:57:03 +00:00
Qi Xiao
2463a9ad10
pkg/eval: Link to Wikipedia for the interval notation in the doc for randint.
2021-11-19 16:32:29 +00:00
Kurtis Rader
c59e01abfc
Document the use of slurp
with printf
...
A recent IM question, and subsequent discussion, resulted in @hhanche
commenting that if you need to explicitly move the output of `printf`
from the byte to the value stream you should use `slurp` rather than
`put` or `from-lines`. Include that insight in the `printf`
documentation.
2021-11-14 16:19:46 +00:00
Kurtis Rader
8faf8930b3
Add use
unit tests and tweak documentation
...
This explicitly tests a common error case not currently verified by the
existing unit tests. Thus improving test coverage by one line. :-)
2021-11-14 16:17:51 +00:00
Qi Xiao
7350a3351b
website/blog: Fix link to release notes of the next version.
2021-11-11 20:35:51 +00:00
Qi Xiao
7a32326a03
website: Avoid reflow with "font-display: block".
2021-11-11 17:19:30 +00:00
Qi Xiao
b49523345e
website: Serve fonts as individual files.
...
Upsides:
- Removing the render-blocking fonts.css allows the page to be visible while the
font is being loaded.
- The original WOFF2 files are smaller than the base64-encoded version in
fonts.css.
- Browsers may be smart enough to not download fonts that are not needed.
The only downside is that this requires the browser to make more requests - up
to 6 for all 6 font files. But this is not a problem with modern browsers.
2021-11-10 23:43:44 +00:00
Qi Xiao
a0959c2273
website: Give the nav bar a large z-index.
...
Otherwise it could be covered by some of the content when scrolling up.
2021-11-09 12:41:45 +00:00
Qi Xiao
04e8518470
website: Show navbar when scrolling up.
2021-11-09 12:13:16 +00:00
Qi Xiao
bea9282143
website: Replace a tab in template.html with two spaces.
2021-11-09 12:13:16 +00:00
Qi Xiao
c18666d50b
website: Fix variable declaration in home.js.
2021-11-09 12:13:16 +00:00
Qi Xiao
5198e38f28
Advice against "useless use of put".
2021-11-07 23:36:56 +00:00
Qi Xiao
b6cf0a355f
Fixup for #1417
2021-11-07 15:08:22 +00:00
Sauyon Lee
b60228cdb6
fixup! pkg/edit: Implement transpose-{alnum- small- ""}word
2021-11-07 14:50:57 +00:00
Sauyon Lee
cf4539ae9e
Add transpose binds to readline-binding
2021-11-07 14:50:57 +00:00
Sauyon Lee
1b4f2b32df
pkg/edit: Implement transpose-{alnum- small- ""}word
2021-11-07 14:50:57 +00:00
Sauyon Lee
66a3116451
pkg/edit: Implement transpose-char
2021-11-07 14:50:57 +00:00
Sauyon Lee
7ec375e583
pkg/edit: Add makeTransform helper for modifying content and dot
2021-11-07 14:50:57 +00:00
Sauyon Lee
56cfb06f9a
pkg/edit: Factor out some word logic into helper functions
2021-11-07 14:50:57 +00:00
Qi Xiao
231bda61e4
website: Tidy up the generated <head> section.
2021-11-02 22:48:35 +00:00
Qi Xiao
c1cf368db7
website: Fix reflow on homepage.
...
Use a <script> at the beginning of <body> to ensure that the demo carousel start
out folded instead of expanded.
2021-11-02 22:30:31 +00:00
Qi Xiao
c1dce661b7
Fix use of the builtin module via explicit "builtin".
...
Some of the variables are added after the Evaler is created, but that change was
not synchronized back to the copy of the builtin module that is imported with
"use builtin".
This fixes #1414 .
2021-10-28 22:28:13 +01:00
Qi Xiao
d71e52cbd7
Refactor the API of eval.NsBuilder to be completely based on methods.
2021-10-23 21:44:11 +01:00
Qi Xiao
db68e4e87d
pkg/shell: Increase the waiting time for daemon in test.
2021-10-23 19:50:46 +01:00
Qi Xiao
1c39c2ed97
pkg/shell: Make sure that a test can finish if the daemon doesn't stop.
2021-10-23 18:41:38 +01:00
Qi Xiao
74003a7f56
pkg/daemon: Always quit after receiving a signal.
...
The current code will busy-loop after receiving a signal until the listener
errors or all existing connection returns.
2021-10-23 18:39:55 +01:00
Qi Xiao
b570b2f0b5
pkg/eval: Clean up the Ns type a bit.
2021-10-23 18:18:31 +01:00
Qi Xiao
74b1c00e2a
Document the legacy ~/.elvish/lib directory.
2021-10-23 13:56:58 +01:00
Qi Xiao
41cbcfb1b1
Move elvdoc for the re module to the Go source.
2021-10-23 13:31:44 +01:00
Qi Xiao
0fd916c418
Document the &max option of str:split.
2021-10-23 13:19:14 +01:00
Qi Xiao
f6a3411d58
website/ref: Be more correct in when Elvish runs interactively or scripts.
2021-10-23 13:14:24 +01:00
Qi Xiao
a25809893e
Clean up flags
...
- Remove the now defunct -web and -port flags.
- Document that -json also works with -compileonly.
2021-10-23 13:04:26 +01:00
Qi Xiao
b42cfaea61
Remove references to ~/.elvish in documentation.
...
This fixes #1399 .
2021-10-23 12:16:50 +01:00
Qi Xiao
4e93132fec
website/get: "latest release" -> "latest packaged release" in package manager instructions.
2021-10-22 18:00:46 +01:00
Qi Xiao
ca4a94112c
Fix markdown format
2021-10-22 17:59:11 +01:00
Rashil Gandhi
ac37bd57d4
Include hyperlink for manifest in bucket
2021-10-22 17:59:11 +01:00
Rashil Gandhi
1e4e6cc007
Add usage instructions for Windows
2021-10-22 17:59:11 +01:00
Qi Xiao
a91852b0a7
Fix tests broken by last commit.
2021-10-22 17:44:57 +01:00
Qi Xiao
fc66ad1d10
pkg/eval/vals: Remove support for the legacy a:b slice syntax.
...
This syntax was deprecated in 0.15.0 and no longer documented since then.
2021-10-22 17:41:09 +01:00
Qi Xiao
b12c29fb53
pkg/eval: Remove unnecessary methods of *Ns and *staticNs.
2021-10-16 12:50:45 +01:00
Qi Xiao
6822e2ca7b
Deprecate the local: and up: special namespaces in 0.17.
...
Also deprecate the use of a leading empty namespace.
This addresses #1409 .
2021-10-15 22:45:02 +01:00
Qi Xiao
4b218d9859
Deprecate the legacy lambda syntax from 0.17.x.
...
This addresses #664 .
2021-10-14 23:10:29 +01:00
Qi Xiao
6a92571a23
Check assignments to read-only variable during compilation.
2021-10-13 23:57:14 +01:00
Qi Xiao
20e98c7479
Support new lambda syntax { |arg &opt=default| body }.
...
This addresses #664 .
2021-10-13 22:47:16 +01:00
Qi Xiao
569d73c270
Deprecate the legacy assignment form from 0.17.0.
...
This addresses #645 .
2021-10-12 23:25:45 +01:00
Qi Xiao
b860f1b037
website/ref: Fix spelling of $edit:-prompt-eagerness
2021-10-12 21:37:58 +01:00