-
Notifications
You must be signed in to change notification settings - Fork 2
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
Open browse view to the working directory of the currently open bview. #4
base: master
Are you sure you want to change the base?
Conversation
This also sets the default cwd of new bviews to the parent directory of the file being opened.
@@ -2,6 +2,7 @@ | |||
#include <signal.h> | |||
#include <time.h> | |||
#include <termbox.h> | |||
#include <libgen.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dirname
is defined there
I think I need to try this out before I give you a thumbs up. Great work though! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries! Thanks!
@@ -2,6 +2,7 @@ | |||
#include <signal.h> | |||
#include <time.h> | |||
#include <termbox.h> | |||
#include <libgen.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dirname
is defined there
I feel like this speeds up navigation in most cases.
One potentially controversial change is that this now sets the default cwd of new bviews to the parent directory of the file being opened. I hope this doesn't have any bad side-effects!