We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cc22b9 commit 1769a8fCopy full SHA for 1769a8f
pgcli/key_bindings.py
@@ -1,4 +1,5 @@
1
import logging
2
+import os
3
from prompt_toolkit.enums import EditingMode
4
from prompt_toolkit.key_binding import KeyBindings
5
from prompt_toolkit.filters import (
@@ -20,6 +21,14 @@ def pgcli_bindings(pgcli):
20
21
22
tab_insert_text = " " * 4
23
24
+ @kb.add("f1")
25
+ def _(event):
26
+ """Show man page for current command."""
27
+ _logger.debug("Detected <F1> key.")
28
+
29
+ t = event.app.current_buffer.text
30
+ os.system(f"man {t}")
31
32
@kb.add("f2")
33
def _(event):
34
"""Enable/Disable SmartCompletion Mode."""
0 commit comments