0

how can I get the path relative to the working directory of the file using find? now I just get a part of the path..

I mean, when I write find **/*Confirm and press Tab I get this:

:find UserArea/activacionGarantiaConfirm.html.twig 

but I expected the path relative to my working directory:

:find Project/views/UserArea/activacionGarantiaConfirm.html.twig 
2
  • :find is relative to your current working directory. Do :pwd to print your current working directory. Do you want it relative to something else? Commented Jan 29, 2015 at 20:45
  • @PeterRincker after :pwd I get /home/tirengarfio/workspace/procom/src. After src comes Project/views.... Commented Jan 29, 2015 at 20:47

1 Answer 1

3

By default, :find's completion doesn't print any part of the path of potential files beyond the file name. Adding a "starstar" wildcard forces it to print the parent directory and another "starstar" will print another parent and so on…

If seeing the full path of every file is important to you, you should use :edit which prints the complete path, relative to the current directory by default.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.