Skip to content

Column completion in the 'i' of a data.table command #18

@matsburg

Description

@matsburg

The regex that's used to detect whether the user is typing inside the brackets of a df only matches once a comma has been typed i.e. 'df[,' matches and completions are shown, but 'df[' doesn't and no completions are shown.

For users of the data.table package, completions before the first comma would be really helpful since column names can be used directly for filtering there. This is known as the 'i' in the data.table DT[i, j, by] syntax.

I suggest either changing the regex so that completions are provided after the '[' is typed, or exposing this as an option. I'm happy to create a PR for this if you would like. Thanks for the great plug-in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions