custom-title icon indicating copy to clipboard operation
custom-title copied to clipboard

Bug with projectPath vs filePath for symlinked directory

Open vfonic opened this issue 8 years ago • 0 comments

Hi,

Thanks for the package!

I've noticed that filePath string is not projectPath + fileName when the project is in symlinked folder.

This is the directory that causes issues: ~/Developer -> ~/OneDrive/Developer

Here's the title template I'm trying to use: <%= fileName + ': ' + filePath.substr(projectPath.length) %>

Here's the output: Expected: index.js:/app/assets/javascripts/index.js Actual: index.js:aproject/app/assets/javascripts/index.js (...aproject is 'OneDrive'.length parent (aka project directory) substring)

I also tried using relativeFilePath, but that one is even worse: ../../../OneDrive/Developer/(...)

I'm not familiar with the internals of Atom, maybe it's Atom issue?

vfonic avatar Sep 09 '15 13:09 vfonic