Commit Graph

66 Commits

Author SHA1 Message Date
Qi Xiao
cd87e234e1 Finish up moving editor core to edit/edcore. 2018-05-24 23:40:55 +01:00
Qi Xiao
c103f99e18 edit: Reorganize: move implementation into edit/edcore. 2018-05-24 22:56:30 +01:00
Qi Xiao
0492bea35a edit: Don't unconditionally mark prompt as stale when readline starts. 2018-03-10 00:05:00 +00:00
Qi Xiao
4b0f115331 edit: Hopefully forced update works this time. 2018-03-08 04:38:08 +00:00
Qi Xiao
e5a207e63c edit: Dead code removal. 2018-03-08 03:56:16 +00:00
Qi Xiao
28ca0ece16 edit: small fix and cleanup 2018-03-08 03:49:57 +00:00
Qi Xiao
e91ff4f764 Do not call prompts in parallel.
This fixes #601.
2018-03-08 02:34:10 +00:00
Qi Xiao
345db2fb98 edit: Fully modularize the prompt subsystem. 2018-03-08 01:56:55 +00:00
David Cuadrado
361e2bccc2 edit: allow to customize stale prompt (#624)
* edit: start expanding stale prompt functionality

* edit: add support for transforming rprompt
2018-03-08 00:55:20 +00:00
Qi Xiao
d2c606f9d0 edit: prompt-eagerness -> prompts-eagerness. 2018-03-08 00:19:40 +00:00
Qi Xiao
0959ca6677 edit: Add $edit:-prompt-eagerness. 2018-03-08 00:12:42 +00:00
Qi Xiao
2798c41634 edit: $edit:-matcher -> $edit:completion:matcher. 2018-03-01 22:06:15 -05:00
Qi Xiao
d925c5c8e8 eval: More cleanups. 2018-02-28 21:50:27 -05:00
Qi Xiao
f3501bbeba eval/types -> eval/vals. 2018-02-15 09:14:05 +00:00
Qi Xiao
1108e01457 edit: Further decouple history and histlist mode from editor. 2018-02-15 08:42:07 +00:00
Qi Xiao
5756e47adf edit: Decouple history modes from editor. 2018-02-15 08:11:24 +00:00
Qi Xiao
fba16535f7 edit: NewEditor now accepts <-chan os.Signal. 2018-02-13 23:28:08 -08:00
Qi Xiao
5e109dc872 edit: Tear down current mode on SIGINT.
This fixes #598.
2018-02-13 23:03:36 -08:00
Qi Xiao
b77b3d7846 edit: Call after-readline hooks before tearing down editor.
This fixes #589.
2018-02-10 11:16:48 -08:00
Qi Xiao
f771ea01f7 edit: Decouple completion mode from editor. 2018-02-09 11:04:09 -08:00
Qi Xiao
9ed635a5c8 edit: Decouple completion mode from editor. 2018-02-08 23:27:12 -08:00
Qi Xiao
7b09f4b8c5 edit: Mostly decouple lastcmd mode from editor. 2018-02-08 21:04:21 -08:00
Qi Xiao
977c885a90 edit: Simplify setup process of listing mode. 2018-02-08 19:06:19 -08:00
Qi Xiao
183d0649b5 edit/listing: Merge into edit/eddefs. 2018-02-08 18:54:37 -08:00
Qi Xiao
ceae248b06 edit/edtypes -> edit/eddefs. 2018-02-08 18:47:46 -08:00
Qi Xiao
032d047daa edit: Decouple location mode from editor.
This is a breaking change: it moves the variable
$edit:loc-{pinned,hidden} to $edit:location:{pinned,hidden}.
2018-02-08 18:37:56 -08:00
Qi Xiao
b8fb0bc3f0 edit: Move part of listing mode to the new edit/listing. 2018-02-08 17:02:56 -08:00
Qi Xiao
2d241485ec edit: Don't "import .", this breaks godoc output. 2018-02-08 16:43:47 -08:00
Qi Xiao
e534b9b732 edit: Simplify wiring of listing modes. 2018-02-08 16:33:33 -08:00
Qi Xiao
cda0630b7a edit: Add Teardown method to Mode. 2018-02-07 01:29:46 -08:00
Qi Xiao
889140cebe edit: Expose the Editor via an interface. 2018-02-07 01:11:36 -08:00
Qi Xiao
cfd78580b0 edit: Deinit -> Teardown. 2018-02-07 01:02:43 -08:00
Qi Xiao
ce7d046fb5 edit: Change Mode.Binding to only take one Key argument. 2018-02-07 01:00:35 -08:00
Qi Xiao
1b6b0fc035 edit: Manage binding of narrow in its own struct. 2018-02-07 00:58:11 -08:00
Qi Xiao
aa2671f842 edit: Manage binding of listing in its own struct. 2018-02-07 00:44:18 -08:00
Qi Xiao
5d875ff1a1 edit: Manage navigation settings in its own struct. 2018-02-07 00:26:56 -08:00
Qi Xiao
ce76f493b2 edit: Manage completion binding in its own struct. 2018-02-07 00:10:30 -08:00
Qi Xiao
d30826d02d edit: Manage insert and command bindings in their structs. 2018-02-06 23:47:55 -08:00
Qi Xiao
85a7faf5e5 edit: Move BindingTable to edit/edtypes, now called BindingMap. 2018-02-06 22:33:04 -08:00
Qi Xiao
d9d9457946 edit: Move the Action type to new edit/editdefs package. 2018-02-06 22:33:03 -08:00
Qi Xiao
2d329a4b5a edit: Export Editor methods used by the history mode. 2018-02-06 22:33:00 -08:00
Qi Xiao
079638f3c3 edit: Further decouple history mode from the editor. 2018-02-06 21:48:04 -08:00
Qi Xiao
4f020a0f59 edit: Further decouple the history mode and the editor. 2018-02-06 21:21:19 -08:00
Qi Xiao
aaf637d904 edit: Simplify editor initializers. 2018-02-06 20:44:56 -08:00
Qi Xiao
edf4aceba2 edit: Put binding table of history mode in the hist struct. 2018-02-06 20:38:30 -08:00
Qi Xiao
a9ec0f5206 edit: Support native hooks. 2018-02-06 17:07:54 -08:00
Qi Xiao
7efe478972 edit: (*Editor).Notify now also works when editor is inactive. 2018-02-06 17:07:02 -08:00
Qi Xiao
65b3c54175 Dead code removal. 2018-02-06 16:24:26 -08:00
Qi Xiao
76ff2fc0c1 edit: Migrate all modes off the old registry mechanism. 2018-02-06 16:03:27 -08:00
Qi Xiao
0aa2775c7f edit: Migrate history mode off the registry mechanism. 2018-02-06 15:28:52 -08:00