Qi Xiao
89bc1e5fa6
Support deleting command history with store:del-cmd.
...
This addresses #554 .
However, the command sequence number shown in histlist mode is not
correct for session-local entries and when there are deleted entries.
2018-05-14 23:26:36 +01:00
Qi Xiao
fe37bbb9e4
edit/history: Add edit:history:fast-forward.
...
This fixes #638 .
2018-03-15 23:00:41 +00:00
Qi Xiao
5e21652a21
eval/vars: Renames.
2018-03-08 13:20:31 +00:00
Qi Xiao
6425cfebba
edit: Move history and histlist mode to edit/history.
2018-03-01 21:26:44 -05:00
Qi Xiao
f3501bbeba
eval/types -> eval/vals.
2018-02-15 09:14:05 +00:00
Qi Xiao
596816f8cf
eval/types: Remove the Value type.
...
Just use the good old interface{} type...
2018-01-29 17:39:41 +00:00
Qi Xiao
1fd2ff3d92
eval/types: Remove the List type.
...
Vector from github.com/xiaq/persistent/vector can now be used as an
Elvish value. This addresses #573 .
2018-01-27 17:26:22 +00:00
Qi Xiao
99921ea222
Get rid of types.String.
...
Elvish strings are now simply Go strings. \o/ This addresses #573 .
2018-01-25 22:50:42 +00:00
Qi Xiao
0046856e41
Name shift: IndexOneer -> Indexer -> MultiIndexer
...
The old definition of Indexer was too flexible, and it turns out that
only one type implements that interface directly. We now call the old
interface MultiIndexer, and rename IndexOneer to Indexer.
This commit makes no semantic changes. MultiIndexer will be removed in
the following commit.
2018-01-20 23:14:34 +00:00
Qi Xiao
f0e66e1f1f
Change IndexOne interface to return an error.
...
This addresses #570 .
2018-01-20 21:20:30 +00:00
Qi Xiao
8c1f9d9c27
eval: Move String to eval/types.
2018-01-02 01:34:09 +00:00
Qi Xiao
00d126b0e1
eval: Move List to eval/types.
2017-12-31 21:01:21 +00:00
Qi Xiao
29b13a917c
eval: Move Value interfaces to eval/types.
2017-12-31 20:31:45 +00:00
Qi Xiao
6c1113fa3d
daemon/: Merge daemon/ with daemon/api.
2017-12-28 21:30:19 +00:00
Qi Xiao
b8cb99cd7b
edit: History -> history.List.
2017-11-12 22:57:34 +00:00
Rene Kaufmann
d347338f56
fix data race in history code ( #405 ) ( #406 )
2017-07-08 17:06:19 +01:00
Qi Xiao
24c56a40c4
Move definitions in store/ to store/storedefs.
...
Now only the daemon/service depends on store/.
2017-06-20 02:57:45 +02:00
Qi Xiao
ac5df712f7
edit: Use daemon more.
2017-06-20 00:00:12 +02:00
xofyarg
32eb79f5da
Fix crash when display invalid history ( #360 )
...
When calling `$le:history:&down` at the last entry of history, current
command and sequence are supposed to be displayed, which will crash
the program since the value of `w.top` is `0`.
Changes:
1. restrict the min value of `w.top` in `Walker.Next` call
2. modify the default readline-binding to use `down-or-quit` instead
of `down`
Fix #358
2017-06-18 17:03:32 +02:00
Qi Xiao
1bee24c57a
edit/history: In Walker, fix matching of commands within session history.
...
This was causing panics in the renderer since it assumes that the current
command of the walker starts with the prefix.
2017-06-07 01:28:09 +01:00
Qi Xiao
b814a7e457
store: Store.AddCmd returns sequence of added command.
2017-06-07 01:10:40 +01:00
Qi Xiao
7543fd3ea2
edit/history: Fuser fuses storage and session history.
2017-06-07 01:00:20 +01:00
Qi Xiao
961e11fab2
Abstract the logics of history mode into another package.
...
The package is fully tested and depends on an interface that store.Store
implements instead of store.Store itself.
2017-06-05 23:07:00 +01:00