Qi Xiao
51e4d97568
interface{} -> any now that Elvish requires Go 1.18.
2022-03-20 16:17:19 +00:00
Qi Xiao
4fcffc5671
Remove most uses of the legacy assignment syntax.
...
The remaining few uses are in some of the tests, which will be removed later.
This addresses #645 .
2022-01-03 00:47:41 +00:00
Qi Xiao
b05fc3250c
Fixup for #1440 .
...
- Fix whitespace inconsistency
- Fix comment in parse/parse.go
2021-11-28 21:32:41 +00:00
Kurtis Rader
d4b4edbbbe
Replace legacy lambda with new lambda examples
...
I was surprised to see so many legacy lambda syntax examples in the
documentation. This replaces all of them with the new syntax -- excluding
the handful of cases meant to explicitly verify the legacy form is still
valid. This also adds a link to the issue in the release notes which
documents the change in syntax.
Related #664
2021-11-28 21:30:59 +00:00
Qi Xiao
e9d328aa16
Make use of (*testing.T).Cleanup for test cleanups.
...
This allows turning the following pattern in tests:
value, cleanup := setupSomething()
defer cleanup()
into the following:
value := setupSomething(t)
2021-08-06 23:21:23 +01:00
Qi Xiao
6e75f3468c
Move API of pkg/store into pkg/storedefs.
...
This makes the nodaemon entrypoint not depend on boltdb at all, reducing its
size by 100KB (on darwin-arm64).
2021-06-19 01:54:00 +01:00
Qi Xiao
49257cb9fe
Run gofmt -s
2021-06-09 01:01:09 +01:00
Kurtis Rader
60bcb27e16
Remove obsolete store API method
...
While working on issue #568 to add a `&dedup` option to the
`edit:command-history` command I noticed that the `store.Cmd.Cmds()`
method should be removed.
2021-05-30 00:33:37 +01:00
Qi Xiao
da67ba8a4a
Use machine word (int) instead of int64 for fixnum.
2021-04-04 13:37:38 +01:00
Qi Xiao
4612b58759
Support exact integer and rational numbers.
2021-04-04 00:58:53 +01:00
Qi Xiao
15af76a22e
pkg/edit: Add edit:global-binding for global bindings.
...
The binding of Esc to close modes is now a default global binding, instead of in
every mode.
2021-02-14 02:05:13 +00:00
Qi Xiao
196eea21d4
Change module import path to src.elv.sh
2021-01-27 01:30:25 +00:00
Shengjing Zhu
6c08de0ff3
Fix typos found by codespell
2020-10-10 22:47:50 +01:00
Qi Xiao
13245e6f28
pkg/edit: Move the add-cmd-filters code to config_api.go.
...
Test has been moved too.
2020-05-18 00:01:05 +01:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00