willothy / flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
https://luarocks.org/modules/willothy/flatten.nvim
MIT License
473 stars 13 forks source link

When there is space in the filename the filename passed to neovim is escaped #70

Closed linsui closed 12 months ago

linsui commented 12 months ago

Describe the bug Run nvim "a b c" in nvim terminal, a a\ b\ c file is opened instead. Out of the nvim the correct a b c is opened.

To Reproduce Steps to reproduce the behavior:

  1. Open the terminal in nvim
  2. Run nvim "a b c"

Expected behavior The correct file name is passed to nvim.

Screenshots If applicable, add screenshots and/or videos to help explain your problem.

Minimal Init Please provide a minimal init to quickly reproduce the issue.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

willothy commented 12 months ago

Please provide a minimal init that can reproduce this, I cannot repro with my config.

Edit: Nevermind, I see the issue. Looking into this now.

linsui commented 12 months ago

Thanks for you quick fix!