portkey icon indicating copy to clipboard operation
portkey copied to clipboard

Allow Portkey to work with Empty Buffer

Open mutewinter opened this issue 11 years ago • 1 comments

When I clear a buffer or end up on an empty buffer, Portkey's commands and mappings stop working.

  1. Open a buffer with a file in a folder containing Portkey
  2. Type :bwipeout
  3. Try a Portkey mapping or :E and they won't work

mutewinter avatar Oct 27 '14 13:10 mutewinter

I actually tried to do this at some point while building the plugin, without success.

The problem boils down to the lack of context with an empty Vim buffer. An empty buffer does not have a path. Portkey uses the path of a buffer to locate it's portkey.json and the subsequent patterns in it.

I'm open to any ideas or workarounds. This is something I've also needed a few times.

dsawardekar avatar Nov 01 '14 17:11 dsawardekar