Qi Xiao
cc6e02d206
pkg/edit: Make smart-enter and completion:smart-start apply autofix.
2022-12-25 13:50:17 +00:00
Qi Xiao
5e593ce8f0
pkg/edit: Simplify bindingHelp.
...
Use Elvish qnames to refer to the binding map too. This is consistent with how
functions are passed, and removes the need to pass around the binding map var,
which is quite awkward in initHighlighter where the binding map is created in a
different place.
2022-12-25 11:51:46 +00:00
Qi Xiao
b09c05b8cc
pkg/edit: Show autofix commands, and support applying it.
2022-12-11 21:25:13 +00:00
Qi Xiao
1c4052f83e
pkg/edit: Show bindings for toggling filter and hidden files in nav mode.
...
This fixes #1529 .
2022-11-26 16:57:53 +00:00
Qi Xiao
51e4d97568
interface{} -> any now that Elvish requires Go 1.18.
2022-03-20 16:17:19 +00:00
Qi Xiao
71e5bff8da
Replace direct reference to persistent types with their aliases in eval/vals.
2021-12-17 00:21:20 +00:00
Qi Xiao
91b6f6dd72
Use the integrated persistent package.
2021-05-03 22:17:46 +01:00
Qi Xiao
7f0463a156
pkg/cli: Pass the widget to binding bodies.
...
A new type, tk.Bindings is defined for bindings. It is always called with the
widget currently handling the event, in addition to the event being handled.
2021-02-12 21:34:47 +00:00
Qi Xiao
699f5f45d2
pkg/edit: De-export MakeBindingMap too.
2021-02-11 01:53:28 +00:00
Qi Xiao
278e7d7191
Improve API of pkg/edit.
...
* De-export BindingMap, as it is only used within the package.
* Improve the godoc of the Editor type.
2021-02-11 01:50:45 +00:00
Qi Xiao
196eea21d4
Change module import path to src.elv.sh
2021-01-27 01:30:25 +00:00
Qi Xiao
8b2e669a5f
Remove unused code.
2020-08-23 16:04:44 +01:00
Qi Xiao
794c19e19f
pkg/ui: Export ParseKey and move ToKey to pkg/edit.
2020-03-31 23:05:41 +01:00
Qi Xiao
c68de40a91
pkg/ui: Do not use util.Throw.
2020-01-12 17:45:42 -05:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00