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
{{ message }}
Repository navigation
Unable to open files with dollar ($) character #863
MacVim is unable to open a file when it is invoked from Finder with a file name or a parent directory contains the character $.
Example: project/$config/main.yml
Steps to reproduce
mkdir -p 'test/$config'
echo "test" > 'test/$config/test.txt'
open -a Finder .
From Finder, try to open the file with MacVim double clicking the file name (the file type must be associated with MacVim)
Hmm I'm having some issues reproducing this. It almost seems to me that someone is doing a variable substitution for $config here. What if you just name your file test_$_file and test_$var_file?
Also, what OS are you using? Does this not happen if you load the file from command line (i.e. mvim <filename>)? Do you have any plugins that you think could interfere with this?
The problem arises when the dollar sign is in the directory name.
To reproduce, please follow literally the Steps to reproduce or download the attached archive.
Yes I did follow the steps literally which is why I asked the followup questions to help identify why I couldn't reproduce the issue. Did you have a chance to test whether file names with $ work?
Also, what macOS version are you using? Did you only see this issue when you double click on the file or when you drag the file to the dock's icon too?
Edit: Actually, nevermind. I reproduced it! I will need to take a look.
Activity
ychin commentedon Feb 22, 2019
Hmm I'm having some issues reproducing this. It almost seems to me that someone is doing a variable substitution for
$confighere. What if you just name your filetest_$_fileandtest_$var_file?Also, what OS are you using? Does this not happen if you load the file from command line (i.e.
mvim <filename>)? Do you have any plugins that you think could interfere with this?daniele-orlando commentedon Feb 22, 2019
The problem arises when the dollar sign is in the directory name.
To reproduce, please follow literally the Steps to reproduce or download the attached archive.
ychin commentedon Feb 23, 2019
Yes I did follow the steps literally which is why I asked the followup questions to help identify why I couldn't reproduce the issue. Did you have a chance to test whether file names with
$work?Also, what macOS version are you using? Did you only see this issue when you double click on the file or when you drag the file to the dock's icon too?
Edit: Actually, nevermind. I reproduced it! I will need to take a look.
daniele-orlando commentedon Feb 23, 2019
Yes, file names with
$character work as expected, no problem with them.Fix opening files that have special chars like '$' in filename
MacVim Snapshot 156