ctrlp.vim icon indicating copy to clipboard operation
ctrlp.vim copied to clipboard

Navigating up the directory tree

Open mmikeww opened this issue 10 years ago • 2 comments

First, is the issue tracker supposed to be used for help and support? If not, feel free to delete this. I just have a quick question. From the docs:

Submit two dots .. to go upward the directory tree by 1 level. To go up multiple levels, use one extra dot for each extra level:

     Raw input    Interpreted as
     ..           ../

I'm on windows using GVIM. When I type .., it just doesn't seem to work as I would have expected. Here's my file tree:

folder1\
--text1.txt
folder2\
--blahblah.txt

If I open either of these files individually in GVIM, pressing ctrl+p initially shows "NO ENTRIES" and then even if i type .. I still get nothing. For example, if I open "text1.txt" with vim, and press ctrl+p, and try typing ..blah or even ..\blahblah I still get "NO ENTRIES"

What am I doing wrong? Is it because ctrlP interprets .. as ../ and Windows normally uses the other slash \ instead of / ?

edit/ setting shellslash in vim doesn't seem to fix it

mmikeww avatar Jun 29 '14 00:06 mmikeww

Lol. So i'm supposed to hit Enter. Duh.

Anyway, perhaps you can change the webpage to say something like ..<CR> for idiots like me. Or the docs to say :

     Raw input    Interpreted as
     ..<CR>           cd ../<CR>

Or even consider whether or not my attempted usage of ..searchstring is a reasonable feature request.

In any case, my issue is resolved. :)

mmikeww avatar Jun 29 '14 15:06 mmikeww

Agree with the <CR> suggestion, took this idiot (me) a few searches before I found this answer.

Sunxperous avatar Jan 19 '16 04:01 Sunxperous