nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

command/fs: include 'new file' and 'current dir' meta entries in completion list #176

Closed nelsam closed 5 years ago

nelsam commented 5 years ago

Resolves #175

Type

Tests

I have tested locally against:

I have included automated tests:

nelsam commented 5 years ago

@Kvaz1r I'm merging this; the main thing it changes:

  1. When you have no text typed, it shows current dir as a meta completion - so you can choose the currently selected directory with enter.
  2. When you have typed some text, but not a full file name, it shows new file as a meta completion - so you can choose to create a new file with enter.
  3. When you hit tab, it will automatically choose the first non-meta entry in the completion list.

AFAIK:

Resolves #175 Resolves #168