You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ended up implementing the feature in a different way, using the GNU readline library.
It is currently in the Oct2020 branch and will eventually (soon) land on default.
It works as follows:
You add some text in the mclient prompt and if you enter a specific keybind, Alt-e by default but the user can rebind this in ~/.inputrc (see the GNU Readline manual for details https://tiswww.case.edu/php/chet/readline/readline.htmlSEC9), the editor specified in VISUAL or EDITOR is started with the text you have already entered.
Edit, save the file and after you exit the editor, all the text contained in the file is copied in the mclient prompt and the cursor is transferred at the end of your input.
Comment 28005
Date: 2020-08-22 00:00:21 +0200
From: Muhmud Ahmad <<muhmud.ahmad>>
Sounds great, thanks!
The text was updated successfully, but these errors were encountered:
Date: 2020-07-20 12:02:31 +0200
From: Muhmud Ahmad <<muhmud.ahmad>>
To: clients devs <>
Version: 11.37.7 (Jun2020)
CC: @kutsurak, muhmud.ahmad
Last updated: 2020-10-19 11:06:21 +0200
Comment 27919
Date: 2020-07-20 12:02:31 +0200
From: Muhmud Ahmad <<muhmud.ahmad>>
Like the MySQL and PostgreSQL command line clients have \e to open the editor specified in $EDITOR to edit the current line.
Comment 27984
Date: 2020-08-16 17:58:04 +0200
From: Muhmud Ahmad <<muhmud.ahmad>>
Created attachment 689
Patch that implements the required functionality
Comment 28004
Date: 2020-08-21 17:58:46 +0200
From: @kutsurak
Hi and thanks very much for the patch!
We ended up implementing the feature in a different way, using the GNU readline library.
It is currently in the Oct2020 branch and will eventually (soon) land on default.
It works as follows:
You add some text in the mclient prompt and if you enter a specific keybind, Alt-e by default but the user can rebind this in ~/.inputrc (see the GNU Readline manual for details https://tiswww.case.edu/php/chet/readline/readline.htmlSEC9), the editor specified in VISUAL or EDITOR is started with the text you have already entered.
Edit, save the file and after you exit the editor, all the text contained in the file is copied in the mclient prompt and the cursor is transferred at the end of your input.
Comment 28005
Date: 2020-08-22 00:00:21 +0200
From: Muhmud Ahmad <<muhmud.ahmad>>
Sounds great, thanks!
The text was updated successfully, but these errors were encountered: