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 |
|
Qi Xiao
|
cf411620ef
|
cli: Integrate histlist mode.
|
2019-04-27 22:47:33 +01:00 |
|
Qi Xiao
|
156a1cc504
|
cli/clicore: Export FakeTTY and FakeSignalSource.
|
2019-04-27 22:05:37 +01:00 |
|
Qi Xiao
|
6c4b737e9f
|
eval/vals: Support float64 when indexing lists or strings.
This addresses #816.
|
2019-04-27 21:00:46 +01:00 |
|
Qi Xiao
|
726ce887a0
|
cli: Provide a Go-friendly API.
Eventually, the newedit package will become just an Elvish binding of this package.
|
2019-04-27 17:08:58 +01:00 |
|
Qi Xiao
|
6c4f100b83
|
README: Update Go version requirement.
|
2019-04-27 14:15:03 +01:00 |
|
Qi Xiao
|
ebb17d6662
|
eval: Add float64 for constructing float64 values.
|
2019-04-26 23:31:19 +01:00 |
|
Qi Xiao
|
321a74da70
|
eval/vals: In FromGo, keep float64 as is.
This addresses #816.
|
2019-04-26 23:29:20 +01:00 |
|
Qi Xiao
|
3927f7cf75
|
Add _tests/cli.
|
2019-04-26 23:20:21 +01:00 |
|
Qi Xiao
|
0ff21a8b32
|
eval/vals: Stringify float64 when concatenating.
This addresses #816.
|
2019-04-26 23:12:48 +01:00 |
|
Qi Xiao
|
d0f16aea3d
|
eval/vals: ScanToGo supports passing float64 as-is.
This addresses #816.
|
2019-04-26 01:10:26 +01:00 |
|
Qi Xiao
|
26a0d172f7
|
cli/clicore: Add convinience functions for building App.
|
2019-04-25 22:13:49 +01:00 |
|
Qi Xiao
|
68af82a8fa
|
styled: Unstyled -> Plain; add a MakeText helper.
|
2019-04-25 22:04:20 +01:00 |
|
Qi Xiao
|
2a12efed08
|
newedit/cli* -> cli/cli*
|
2019-04-25 21:33:17 +01:00 |
|
Qi Xiao
|
f2d661fc04
|
_testwin -> _tests/win_tty
|
2019-04-25 21:29:57 +01:00 |
|
Qi Xiao
|
16e04cca31
|
newedit/clicore: Change reference to Editor to App.
|
2019-04-25 09:46:04 +01:00 |
|
Qi Xiao
|
d4fb9e5ffb
|
newedit/clicore: Editor -> App.
|
2019-04-25 09:43:41 +01:00 |
|
Qi Xiao
|
5151b4cbbf
|
newedit/editutil -> newedit/cliutil.
|
2019-04-25 09:32:32 +01:00 |
|
Qi Xiao
|
eef1fd1540
|
newedit/types -> newedit/clitypes.
|
2019-04-25 09:31:19 +01:00 |
|
Qi Xiao
|
0e5341b8ce
|
newedit/core -> newedit/clicore.
|
2019-04-25 09:25:03 +01:00 |
|
Qi Xiao
|
5eaec24f11
|
newedit: Implement a basic location mode.
|
2019-04-25 09:12:58 +01:00 |
|
Qi Xiao
|
5e41a4cd40
|
newedit/histlist: Cleanup.
|
2019-04-24 21:48:52 +01:00 |
|
Qi Xiao
|
b7f11e6816
|
_website: Fix Elvish codeblocks.
|
2019-04-24 20:38:12 +01:00 |
|
Qi Xiao
|
d1a47ec49a
|
_website: Add examples for "if", and document the implicit logical and.
|
2019-04-24 20:36:06 +01:00 |
|
Qi Xiao
|
5291dae422
|
newedit: Implement histlist mode.
This addresses #778.
|
2019-04-22 23:39:51 +01:00 |
|
Qi Xiao
|
a46d854ab5
|
Provide a constructor for tty.KeyEvent.
And fix linter errors in newedit/listing by using this new constructor.
|
2019-04-20 17:34:59 +01:00 |
|
Qi Xiao
|
6eb319f661
|
newedit: Call st.AddCmd after readline.
|
2019-04-20 17:13:05 +01:00 |
|
Qi Xiao
|
a140f3e622
|
newedit: De-export BindingMap.
|
2019-04-20 16:09:01 +01:00 |
|
Qi Xiao
|
5adf29b15f
|
newedit/editutil: In BasicHandler, only insert the character when the key is a character.
|
2019-04-19 23:02:44 +01:00 |
|
Qi Xiao
|
f798ef1e98
|
eval/vars: Clean up and add tests.
|
2019-04-19 19:44:11 +01:00 |
|
Qi Xiao
|
f5f49b746e
|
eval/vals: Test iterate.go.
|
2019-04-19 18:48:45 +01:00 |
|
Qi Xiao
|
bbaa846638
|
Fix test on Unix.
|
2019-04-19 18:37:35 +01:00 |
|
Qi Xiao
|
89aa69d29d
|
eval/vals: Consolidate the utility functions to build lists and maps.
|
2019-04-19 18:26:27 +01:00 |
|
Qi Xiao
|
135095881b
|
eval/vals: Remove unused rat.go.
|
2019-04-19 18:05:34 +01:00 |
|