dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.41k stars 659 forks source link

Visual Mode opens Vim (nice feature not documented) #607

Open tqmz opened 6 years ago

tqmz commented 6 years ago

I'm a big fan of mycli, it's my favorite tool for using MySQL and absolutely nice!

One thing I stumbled upon intuitively only is that it can open Vim not only by \e but also by trying to enter visual mode (thus normal mode via <ESC>, then v). Really nice, so I suggest to add a hint on this to https://www.mycli.net/editor.

Thanks for you work and have a nice day!

tsroten commented 6 years ago

@tqmz I'm glad you found that! We should definitely make that documentation more in-depth.

We use prompt-toolkit behind the scenes for the vi-mode, which tries to be like Readline vi-mode, hence the v shortcut to open an external editor. That would be a great tip to put on that documentation page.

Here is a cheat sheet that someone created for Readline's vi-mode. Not all of these are guaranteed to work in mycli, but a lot of them will.

Thanks!!