Repository navigation
WIP: add support for vi mode - #407
Conversation
This adds support for vi mode.
|
What about this is WIP? |
|
Also, do you have any thoughts on the config-related design questions from #100? |
|
This is WIP mostly because of the config stuff. Those questions have to be worked out before the design for this can be finalized. Also I'm not sure it is doing a good job handling errors. As far as #100 goes, I like your suggestion to watch the file and reload as necessary. That reload could also be triggered by invocation of |
|
@iamcodemaker there are a few Context objects that get passed around to various parts of the system (with things like Host, ShellManager and CommandRegistry), and config could be added to that. |
|
Should this maybe be "blocked" (on either #100 or another config issue) rather than "WIP"? |
|
Or, just merge it, since config related issues will be resolved separately? |
|
Fwiw, I'm fine with merging it and then having a todo item issue that ties it into the config work. As it stands now it will work, you just have to restart |
|
No restart is necessary. It loads the config each time a new prompt is displayed. |
|
@iamcodemaker - this seems good to me. If you want, we can go ahead and land it |
|
If y'all are ok with it, I'm ok with it. |
This change adds support for vi editing mode. This is somewhat of a proof of concept. It works by reading the
edit_modevalue from the config file and setting the mode toEmacsorVidepending on what the value is there.Use
config --set [edit_mode vi]andconfig --set [edit_mode emacs](orconfig --remove edit_mode) to set the edit mode.This also fixes what appears to be a bug with
config --removein which the modified config wasn't actually saved.related to: #354