summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2019-03-16 14:09:39 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2019-03-16 14:09:39 -0700
commit83e17e825f1ad085b5eee66f5b27b3a700c35702 (patch)
treebee6d6760a0d80f524da9e2f1685e926c407e0c9
parentb8f6974f14e9eb37023e944a943015ca932bff72 (diff)
Remove the expand_tab option from pgclirc.remove_expand_tab_option
-rw-r--r--pgcli/key_bindings.py3
-rw-r--r--pgcli/pgclirc3
2 files changed, 1 insertions, 5 deletions
diff --git a/pgcli/key_bindings.py b/pgcli/key_bindings.py
index cda4fb6c..dbb4035c 100644
--- a/pgcli/key_bindings.py
+++ b/pgcli/key_bindings.py
@@ -12,8 +12,7 @@ def pgcli_bindings(pgcli):
"""Custom key bindings for pgcli."""
kb = KeyBindings()
- expand_tab = pgcli.config['main'].as_bool('expand_tab')
- tab_insert_text = ' ' * 4 if expand_tab else '\t'
+ tab_insert_text = ' ' * 4
@kb.add('f2')
def _(event):
diff --git a/pgcli/pgclirc b/pgcli/pgclirc
index 8b452506..78d78366 100644
--- a/pgcli/pgclirc
+++ b/pgcli/pgclirc
@@ -143,9 +143,6 @@ enable_pager = True
# Use keyring to automatically save and load password in a secure manner
keyring = True
-# When the <Tab> key is pressed on an empty line, use 4 spaces instead of \t
-expand_tab = False
-
# Custom colors for the completion menu, toolbar, etc.
[colors]
completion-menu.completion.current = 'bg:#ffffff #000000'