Skip to content

Feature: Completion Suggestions for Dictionary Keys #251

Open
@KeithScheiwiller

Description

@KeithScheiwiller

One feature I've found useful in Chrome's devtools is that it will offer completions for Object keys even when accessed with the someObject[key] syntax. I figure something similar could be possible for ptpython as well, at least for "vanilla" Python dictionaries.

For example, if I have the dictionary
my_dict = { "foo": 42, "bar": 24, "food": "pizza" }
when typing
my_dict["fo into ptpython it could offer to complete to my_dict["foo"] or my_dict["food"].

Hopefully this is something that would play will with Jedi, etc.!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions