Skip to content

Commit 8769be9

Browse files
amjithjonathanslenders
authored andcommitted
Add 'zt' and 'zb' to vi mode.
1 parent 0f6e581 commit 8769be9

File tree

1 file changed

+2
-0
lines changed
  • prompt_toolkit/key_binding/bindings

1 file changed

+2
-0
lines changed

prompt_toolkit/key_binding/bindings/vi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ def _(event):
978978
return CursorRegion(pos)
979979

980980
@handle('z', '+', filter=navigation_mode|selection_mode)
981+
@handle('z', 't', filter=navigation_mode|selection_mode)
981982
@handle('z', Keys.ControlJ, filter=navigation_mode|selection_mode)
982983
def _(event):
983984
"""
@@ -997,6 +998,7 @@ def _(event):
997998

998999

9991000
@handle('z', '-', filter=navigation_mode|selection_mode)
1001+
@handle('z', 'b', filter=navigation_mode|selection_mode)
10001002
def _(event):
10011003
"""
10021004
Scrolls the window to makes the current line the last line in the visible region.

0 commit comments

Comments
 (0)