Amjith Ramanujam

218 points
User profile image.
San Jose

Amjith Ramanujam is a senior software engineer at Netflix. His team is responsible for keeping Netflix services running in the face of extreme adversity. In other words, his team is in charge of doing regional failover.

In his spare time he writes modern CLI tools. He is the creator of pgcli and mycli.

You should say hi to him on twitter.

Authored Comments

I have use the YouCompleteMe plugin for Vim in the past. I've since moved to neovim and I'm currently using the neovim-completion-manager plugin.

https://github.com/roxma/nvim-completion-manager

You're right. I didn't add that in because I'd have to show how to trigger the editor launch.

It is typically done in pgcli and mycli by appending a `\e` at the end of the query.

For example: `SELECT * FROM tabl1 \e` and pressing enter will launch the editor and fill the contents of the editor with the query. Then you can edit the query and quit the editor and the command will be filled back into the prompt.

It can be implemented by reading the query and checking if the query `endswith('\e')` and then take appropriate action.

I hope that help you get started.