Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open files that contain spaces in file/path name #42

Open
joelpeapen opened this issue Jan 27, 2024 · 0 comments
Open

Cannot open files that contain spaces in file/path name #42

joelpeapen opened this issue Jan 27, 2024 · 0 comments

Comments

@joelpeapen
Copy link

Lf cannot open to a file or folder that contains a space in the filename or anywhere in its path

this doesn't work:
:Lf /path/folder one/file one.txt (space in path and file name)
:Lf /path/folder-one/file one.txt (space in filename)

this does:
Lf /path/folder-one/file-one.txt (no spaces)

escaping the spaces doesn't work either

vim.cmd("Lf " .. string.gsub(vim.api.nvim_buf_get_name(0), ' ', '\\ '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant