Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use ranger for changing working directory? #96

Open
ywpkwon opened this issue Apr 13, 2020 · 4 comments
Open

Can we use ranger for changing working directory? #96

ywpkwon opened this issue Apr 13, 2020 · 4 comments

Comments

@ywpkwon
Copy link

ywpkwon commented Apr 13, 2020

Hi. I'm a big fan of ranger and vim, and it's so happy to see this plugin.

I have one question. In addition to finding/opening a file, can we use this for changing the working directory? (e.g, open ranger, navigate folders, and select a directory to set the directory as the working directory,)

@ChristianChiarulli
Copy link

pair it it with vim-rooter maybe?

@Zeioth
Copy link

Zeioth commented Jul 28, 2020

You might want to enable fuzzysearch in ranger. Or markers.

@lifeBalance
Copy link

pair it it with vim-rooter maybe?

That was a suggestion to the developer or to the op?
In case you meant the 2nd, I would appreciate some pointers in order to to that ;-)

@doctorguile
Copy link

doctorguile commented Sep 17, 2023

I patched it to change working directory when you quit ranger.
I imagined people might want a variable or some way to control this behavior but for me i just always want it update the cwd. Just in case anyone wants to submit a proper PR ;)

    Add support for choosing directory when calling out to ranger
    when ranger exits, change the current working directory of vim to the
    last selected directory in ranger

doctorguile@149ab7f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants