rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Problem opening files with spaces in the name when single instance #105

Open heitzmann opened 7 years ago

heitzmann commented 7 years ago

The first call to Nyaovim handles filenames with spaces correctly, but opening a second one from the terminal or file manager splits the file into multiple arguments.

I have tried both with escaped whitespaces and quoted filenames. Both give the same wrong result.

This happens when Nyaovim is configured to run in a single instance.

Expected Behavior

The filename with spaces should be evaluated as a single argument.

Actual Behavior

The filename is split at the spaces and nyaovim opens many files with the partial names.

Steps to Reproduce (including precondition)

browser-config.json must include "single_instance": true to reproduce this error.

From the terminal:

nyaovim file1.txt
nyaovim file\ 2.txt
nyaovim "file 3.txt"

After the 3 commands Nyaovim will include buffers file1.txt, file, 2.txt, and 3.txt, when they should be file1.txt, file 2.txt, and file 3.txt.

Screenshot on This Problem (if possible)

1481028812

Your Environment