Skip to content

Let the multiline filter have access to the prompt text #1132

Open
@erezsh

Description

@erezsh

Right now there's no simple way to decide whether Enter should accept or open a new line based on the content of the text.

It seems like a very useful feature in general. For example, to write something like ptpython (that doesn't seem to use this feature)

Please correct me if I'm wrong about that.

Also, right now is_true(self.multiline) is called about 10 times for each character pressed. You really only need to call it once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-better-docsQuestion about something for which we probably need better documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions