flow / vim-flow

A vim plugin for Flow
Other
525 stars 52 forks source link

autocomplete ordering #67

Open acornejo opened 7 years ago

acornejo commented 7 years ago

When autocompleting on objects, flow will show all possible options in alphabetical ordering.

Most of the times users are interested in the properties they defined on the object and not ALL existing properties. It would be useful to sort these to reflect this.

For example, considering the following object:

type Action = {type: string, payload: any}

If I autocomplete on this I probably want type or payload, but flow will present me with hasOwnProperty, isPrototypeOf, etc.. and type will be one of the last available options (sorted alphabetically).