Qi Xiao
93c17dc7c2
Improve handling of namespaces.
...
* The training colons of namespaces are now considered part of the namespace,
simplifying the internal API.
* Added tests for more complex patterns of nested namespaces that used to fail.
2019-10-22 22:50:56 +01:00
Qi Xiao
5b93b08206
eval: Add a few test cases.
2019-10-22 22:50:56 +01:00
Qi Xiao
9472ead9c8
Merge pull request #860 from vendion/master
...
Add information for installing on FreeBSD
2019-10-22 22:26:50 +01:00
Adam Jimerson
3a1ec82a4b
Add information for installing on FreeBSD
...
Added information for installing Elvish with `pkg` command (FreeBSD
package manager) and building Elvish from FreeBSD ports tree.
Signed-off-by: Adam Jimerson <vendion@gmail.com>
2019-10-22 16:33:51 -04:00
Qi Xiao
bd023da38e
Supported Go versions: -1.11, +1.13
2019-10-21 11:09:22 +01:00
Mengqi Yang
4b7c69aed4
Support JSON output in -compileonly ( #858 )
...
This fixes #760 .
2019-10-16 23:50:10 +01:00
Qi Xiao
e2a3f2d8e9
Re-enable badget for codecov.io.
2019-08-26 12:09:19 +01:00
Qi Xiao
d847bf8219
Force terminal in blocking mode after sourcing rc.elv and executing commands.
...
This fixes #588 and #822 .
2019-08-11 13:38:31 +01:00
Qi Xiao
0b368eeaec
Parse consecutive question marks as individual wildcard segments.
...
This fixes #848 .
2019-08-11 12:07:31 +01:00
Qi Xiao
0e2653154a
.travis.yml: Only deploy on master branch.
2019-07-26 10:34:13 +01:00
Qi Xiao
255aad4353
edit/ui: Fix import cycle and typo.
2019-07-22 21:59:55 +01:00
Qi Xiao
2ec3db2b8e
edit/ui: Improve API of BufferBuilder.
...
* Add WriteStyled, and rename WriteStyleds to WriteLegacyStyleds.
* Rename WriteUnstyled to WritePlain, in consistency with styled.Plain.
2019-07-22 21:44:06 +01:00
Qi Xiao
b724f0aa20
Change wording on "JSON data structure" in epm.elv.
...
This fixes #840 .
2019-07-20 14:05:34 +01:00
Qi Xiao
544f4d4d3f
cli: Set up integration with location mode.
2019-07-20 14:05:05 +01:00
Qi Xiao
5e13a2f906
cli: Make API for all listing modes consistent.
2019-07-20 14:05:04 +01:00
Christian Muehlhaeuser
3f2a85db48
Simplified Go code ( #843 )
...
A few code simplifications which should come with no side-effects.
2019-07-20 13:58:38 +01:00
Ilya Sher
8c1963ec84
Fix typo in comments: received -> receives ( #839 )
2019-07-20 13:55:51 +01:00
Christian Muehlhaeuser
50b6840383
Avoid unnecessary conversions ( #844 )
...
Variables are already of the right type here.
2019-07-20 13:55:36 +01:00
Qi Xiao
4738717337
cli/insert: Make Config an interface.
2019-07-20 11:20:46 +01:00
Denis Krienbühl
66c37899de
Fix the if-condition example in the language ref ( #824 )
...
The current example does not match the syntax definition and does not work.
2019-07-11 23:54:29 +01:00
Steve Blundy
884bc06066
Add builtin function docs ( #825 )
...
* Add documentation and examples for has-key and has-value
2019-07-11 21:37:12 +01:00
Qi Xiao
123aeae493
cli/clicore: Access all config via the Config interface.
...
The cli package has been changed accordingly.
2019-07-10 21:42:11 +01:00
Qi Xiao
2584bd2510
cli/clicore: Make Config an interface.
...
Doing this means that the clicore package avoids dealing with
synchronization of the config.
2019-07-02 22:28:10 +01:00
Qi Xiao
0e6980a173
Move subpackages of newedit into cliedit.
2019-06-22 21:27:45 +01:00
Qi Xiao
fd4a0a2342
Remove newedit (except subpackages); cliedit is the new newedit.
2019-06-22 21:25:59 +01:00
Qi Xiao
5c99fe2396
cliedit: Multiple fixes.
...
* Build the cli.App after building the AppConfig, as currently
cli.NewAppFromFiles dereferences AppConfig.
* Wrap histutil.Fuser to implement histutil.Store.
* Fix callBinding to pass the KeyEvent to event handlers.
2019-06-22 21:20:25 +01:00
Qi Xiao
f4c5a67b70
Merge branch 'master' into cliedit
2019-05-15 19:40:46 +01:00
Qi Xiao
720b687d21
Add cliedit, a rewrite of newedit based on the cli package.
...
This doesn't quite work yet, so it lives on a branch.
2019-05-14 10:59:41 +01:00
Qi Xiao
14121baa48
cli/term: Fix build on Unix.
2019-05-14 00:34:41 +01:00
Qi Xiao
919ba1ec01
cli: Export more fields of App and add more builtins.
2019-05-14 00:23:23 +01:00
Qi Xiao
2c94197e29
cli/clicore: Improve API of FakeSignalSource.
...
The API for controlling the FakeSignalSource is separated from itself.
Also unexported FakeSignalSource.
2019-05-14 00:17:57 +01:00
Qi Xiao
78aec61f39
Improve API of FakeTTY.
...
The control methods are isolated into a TTYCtrl interface and isolated
from the TTY interface implementation.
The FakeTTY type is unexported.
2019-05-14 00:17:43 +01:00
Qi Xiao
48a277ff65
Rename package edit/tty -> cli/term.
2019-05-13 22:37:43 +01:00
Qi Xiao
0c4691ae94
cli: StringsPairsFromSlice -> NewSliceStringPairs.
2019-05-02 01:31:33 +01:00
Qi Xiao
974407ca10
cli: Move StartHistlist to histlist_mode.go.
2019-05-02 01:29:23 +01:00
Qi Xiao
67f4027013
cli: Rename constructing functions to start with New.
2019-05-02 01:28:50 +01:00
Qi Xiao
dbba26b4cb
cli: Integrate newedit/prompt.
2019-05-02 01:26:42 +01:00
Qi Xiao
7c46021a09
cli: Integrate lastcmd mode.
2019-05-02 01:14:01 +01:00
Qi Xiao
e9c62dedff
cli/histutil: Add a LastCmd method to Store.
2019-05-02 00:58:26 +01:00
Qi Xiao
cdcd88f3ed
cli: Add config for histlist mode binding.
2019-05-02 00:45:35 +01:00
Qi Xiao
7f61fa8688
cli: AppConfig.InsertConfig -> AppConfig.InsertModeConfig.
2019-05-02 00:32:27 +01:00
Qi Xiao
66f70c2878
Move newedit/{insert,listing,histlist} to cli/.
2019-05-02 00:30:22 +01:00
Qi Xiao
cb8ccddca8
cli/histutil: Make Fuser implement Store.
2019-05-01 23:28:57 +01:00
Qi Xiao
5ea8e9badc
cli/histutil: Introduce an abstract Store interface.
2019-05-01 21:53:14 +01:00
Qi Xiao
41852721d6
edit/history/histutil -> cli/histutil
2019-04-28 13:53:05 +01:00
Qi Xiao
9f969d04be
edit/history/histutil: Add a simpler implementation of Walker.
2019-04-28 01:21:22 +01:00
Qi Xiao
4e455c2c38
edit/history/histedit: Improve test.
2019-04-28 00:57:09 +01:00
Qi Xiao
40244d10e3
edit/history: Make Walker an interface.
...
Also simplify the Prev and Next methods to only return an error.
2019-04-28 00:28:15 +01:00
Qi Xiao
d1421bbe60
eval/vals: ScanToGo accepts float64 as int.
...
This addresses #816 .
2019-04-27 23:49:14 +01:00
Qi Xiao
5c39292700
cli: Make Commit{EOF,Code} functions.
...
The godoc reads slightly nicer this way.
2019-04-27 23:44:47 +01:00