Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Upcoming (TBD)
Features:
---------
* Add support for `\\T` prompt escape sequence to display transaction status (similar to psql's `%x`).
* Add cursor shape support for vi mode. When ``vi = True``, the terminal cursor now
reflects the current editing mode: beam in INSERT, block in NORMAL, underline in REPLACE.
Uses prompt_toolkit's ``ModalCursorShapeConfig``.

4.4.0 (2025-12-24)
==================
Expand Down
2 changes: 2 additions & 0 deletions pgcli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
)
from prompt_toolkit.history import FileHistory
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
from prompt_toolkit.cursor_shapes import ModalCursorShapeConfig
from pygments.lexers.sql import PostgresLexer

from pgspecial.main import PGSpecial, NO_QUERY, PAGER_OFF, PAGER_LONG_OUTPUT
Expand Down Expand Up @@ -1087,6 +1088,7 @@ def get_continuation(width, line_number, is_soft_wrap):
enable_suspend=True,
editing_mode=EditingMode.VI if self.vi_mode else EditingMode.EMACS,
search_ignore_case=True,
cursor=ModalCursorShapeConfig(),
)

return prompt_app
Expand Down