diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2018-11-17 19:41:34 -0800 |
---|---|---|
committer | Irina Truong <i.chernyavska@gmail.com> | 2018-11-17 19:41:34 -0800 |
commit | 923f2d64417ed8ab3b778b87a517e64c0534b6ec (patch) | |
tree | c483dfa499a3cedb89c2a06f41a291e5293c0371 | |
parent | 0f0be9deab501b85f9d77d5233886505ba17abc5 (diff) |
Enable suspend using C-Z. (#970)
* Enable suspend using C-Z.
* Update changelog.
-rw-r--r-- | changelog.rst | 3 | ||||
-rw-r--r-- | pgcli/main.py | 1 |
2 files changed, 3 insertions, 1 deletions
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) |