Skip to content
Open
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
7 changes: 6 additions & 1 deletion src/prompt_toolkit/shortcuts/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class CompleteStyle(str, Enum):

COLUMN = "COLUMN"
MULTI_COLUMN = "MULTI_COLUMN"
INPLACE = "INPLACE"
READLINE_LIKE = "READLINE_LIKE"


Expand Down Expand Up @@ -634,6 +635,10 @@ def get_search_buffer_control() -> SearchBufferControl:
wrap_lines=dyncond("wrap_lines"),
)

@Condition
def column_complete_style() -> bool:
return self.complete_style == CompleteStyle.COLUMN

@Condition
def multi_column_complete_style() -> bool:
return self.complete_style == CompleteStyle.MULTI_COLUMN
Expand Down Expand Up @@ -680,7 +685,7 @@ def multi_column_complete_style() -> bool:
max_height=16,
scroll_offset=1,
extra_filter=has_focus(default_buffer)
& ~multi_column_complete_style,
& column_complete_style,
),
),
Float(
Expand Down