From 923f2d64417ed8ab3b778b87a517e64c0534b6ec Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Sat, 17 Nov 2018 19:41:34 -0800 Subject: Enable suspend using C-Z. (#970) * Enable suspend using C-Z. * Update changelog. --- changelog.rst | 3 ++- pgcli/main.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.rst b/changelog.rst index bc2a6797..d4ff20d8 100644 --- a/changelog.rst +++ b/changelog.rst @@ -7,6 +7,7 @@ Bug fixes: * Fix for loading/saving named queries from provided config file (#938). (Thanks: `Daniel Egger`_) * Set default port in `connect_uri` when none is given. (Thanks: `Daniel Egger`_) * Fix for error listing databases (#951). (Thanks: `Irina Truong`_) +* Enable Ctrl-Z to suspend the app (Thanks: `Amjith Ramanujam`_). Internal: --------- @@ -830,7 +831,7 @@ Improvements: * Faster test runs on TravisCI. (Thanks: https://github.com/macobo) * Integration tests with Postgres!! (Thanks: https://github.com/macobo) -.. _`Amjith Ramanujam`: https://github.com/amjith +.. _`Amjith Ramanujam`: https://blog.amjith.com .. _`Andrew Kuchling`: https://github.com/akuchling .. _`Darik Gamble`: https://github.com/darikg .. _`Daniel Rocco`: https://github.com/drocco007 diff --git a/pgcli/main.py b/pgcli/main.py index 86a86b1e..c25c7617 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -729,6 +729,7 @@ class PGCli(object): key_bindings=key_bindings, enable_open_in_editor=True, enable_system_prompt=True, + enable_suspend=True, editing_mode=EditingMode.VI if self.vi_mode else EditingMode.EMACS, search_ignore_case=True) -- cgit v1.2.3