Sublime Forum

Quick open files with path starting with ./

#1

Hi,

I often use grep from the terminal to locate files I want to open with Sublime.

When I copy their path, such as: ./PVT/ConfigLoader.php

And paste it in the ‘Quick open’ in Sublime Text (command + p) it won’t find it, I need to manually remove the ./ from the beginning of the path to get Sublime to find it…

Anyone would have a way to solve this? IE, tell sublime to either ignore the ‘./’ or make him understand it just means the current folder?

0 Likes

#2

The Goto Anything will fuzzy find over the list of file names available in the sidebar. Your ./ is probably throwing off that fuzzy match. (And it also doesn’t know that ./ means the current folder because IMO that doesn’t make sense). You may need to find a way to just remove that ./ from the copied path before you paste it in the Goto Anything input panel. A plugin should be able to do that, I guess.

0 Likes