You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a question?
Please start a new Q&A discussion instead of raising a feature request.
Can this functionality be implemented utilising API?
No, and it would make sense to change this for a better default behavior.
Is your feature request related to a problem? Please describe.
When hitting . while being on an object in the tree, it will enter command mode while having the absolute path already inserted. This is nice and all, until the absolute path contains spaces.
Describe the solution you'd like
I think it would make sense to surround the path with quotes by default to circumvent the problem.
Describe alternatives you've considered
Inserting it on my own, but it feels repetitive.
Additional context
It should be discussed if quotes can cause any problems. I only ever use this feature to launch OS specific commands with bang, so I don't know.
The text was updated successfully, but these errors were encountered:
Surrounding the path with quotes is arguably non-breaking.
vim.fn.fnescape or similar could be used, although it may not work on some OS variants such as windows powershell.
Alternative: user optionally provides a function to escape the absolute path, something like:
node.run.cmd({opts}) *nvim-tree-api.node.run.cmd()*
Enter |cmdline| with the full path of the node and the cursor at the start
of the line.
Parameters: ~
• {opts} (table) optional parameters
Options: ~
• {format} (fun(absolute_path: string): string) format the path before
inserting
Is this a question?
Please start a new Q&A discussion instead of raising a feature request.
Can this functionality be implemented utilising API?
No, and it would make sense to change this for a better default behavior.
Is your feature request related to a problem? Please describe.
When hitting
.
while being on an object in the tree, it will enter command mode while having the absolute path already inserted. This is nice and all, until the absolute path contains spaces.Describe the solution you'd like
I think it would make sense to surround the path with quotes by default to circumvent the problem.
Describe alternatives you've considered
Inserting it on my own, but it feels repetitive.
Additional context
It should be discussed if quotes can cause any problems. I only ever use this feature to launch OS specific commands with bang, so I don't know.
The text was updated successfully, but these errors were encountered: