-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Resolve args.files before changing directory #8676
Resolve args.files before changing directory #8676
Conversation
I think you can now simplify the logic to open the CWD again (get rid of the |
Good point |
One question that may be worth asking now is what is the logical behaviour of running Currently it will effectively ignore |
Yeah, I would prefer |
Ok, I made two changes now. The first as discussed above, the second to open the remaining files in args.files when the first one is a directory. |
11e28df
to
7ec1d88
Compare
7ec1d88
to
d5fabdd
Compare
Updated after feedback |
* Resolve args.files before changing directory * Removed the open_cwd work-around now that the path is full * If -w is specified, use that as the working directory * Open the remaining files in the argument list, also when the first is a directory * Use an iterator access the files argument
* Resolve args.files before changing directory * Removed the open_cwd work-around now that the path is full * If -w is specified, use that as the working directory * Open the remaining files in the argument list, also when the first is a directory * Use an iterator access the files argument
* Resolve args.files before changing directory * Removed the open_cwd work-around now that the path is full * If -w is specified, use that as the working directory * Open the remaining files in the argument list, also when the first is a directory * Use an iterator access the files argument
* Resolve args.files before changing directory * Removed the open_cwd work-around now that the path is full * If -w is specified, use that as the working directory * Open the remaining files in the argument list, also when the first is a directory * Use an iterator access the files argument
As discussed with @the-mikedavis in #8520 (comment)