Skip to content

Feature Request: Include parentheses when tab completing functions #387

Open
@mskar

Description

@mskar

When completing a function,
image
ptpython does not add parentheses after the function name.
image
I would like tab completion of functions to also add parentheses and put my cursor inside the parentheses:
image

Other examples:
Tab completion in IPython shows functions with parentheses in the completion menu:
image
but when I tab complete a function the parentheses are not included:
image
It would be better if IPython would add parentheses and put my cursor inside the parentheses:
image
Adding parentheses to completed functions is the default behavior in

I think this feature would be widely appreciated by users and should be the default behavior for tab completion of functions. Some users may prefer the current behavior, so ideally it would be controlled via a setting in ptpython/config.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions