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

Unable to 'q'uit to the current directory #16

Open
andy5995 opened this issue Aug 24, 2022 · 7 comments
Open

Unable to 'q'uit to the current directory #16

andy5995 opened this issue Aug 24, 2022 · 7 comments

Comments

@andy5995
Copy link
Contributor

When I navigate to a different directory and press 'q', 'x', or 'alt+x', it always quits to the directory I was in when I started vfu.

@LarryDC
Copy link

LarryDC commented Oct 7, 2022

Perhaps your shell is not bash? For the "q" to work properly where SHELL=/usr/bin/zsh, I had to add to .zshrc:

function vfu()
  {
  /usr/local/bin/vfu $*;
  \cd "`cat /tmp/vfu.exit.$USER`";
  \rm -f /tmp/vfu.exit.$USER;
  }

Note the "" before "cd" and "rm" since most zsh implementations alias most "dangerous" commands to demand intervention which would kill the function.

@LarryDC
Copy link

LarryDC commented Oct 7, 2022

Sorry. my " \" didn't make it.

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 7, 2022

Thanks for the response @LarryDC . My shell is bash.

@LarryDC
Copy link

LarryDC commented Oct 8, 2022 via email

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 8, 2022

Thanks for the suggestion @LarryDC . I'll wait to hear from @cade-vs before I try adding extra functions to my environment. Seems more like a bug that the maintainer would want reported and fixed. For a console file manager to have the ability to exit to the current directory has been pretty standard since my days of first working with DOS back in 1991.

@andy5995
Copy link
Contributor Author

@cade-vs Do you think think this will be fixed before the next release?

@andy5995
Copy link
Contributor Author

andy5995 commented Jan 29, 2023

Please excuse my obvious response: Don't you have the function vfu() set in your .bashrc? I say this because "Q" & "X" work properly for me. However I have the latest Github sources compiled statically to run on my various distros. Sorry I can't duplicate the behavior.

Thanks again @LarryDC , I added the vfu function to my bashrc as you suggested and it's working now.

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

2 participants