Closed kockahonza closed 1 month ago
Nice to have!
Anyone want to give this a go?
Willing to have a crack at it, I've not been using Yazi all that long, but I presume this relates to the difference between exiting to the current directory Yazi is in (That the user has navigated to) vs. returning to where the shell spawned the process.
Willing to have a crack at it, I've not been using Yazi all that long, but I presume this relates to the difference between exiting to the current directory Yazi is in (That the user has navigated to) vs. returning to where the shell spawned the process.
I'm also trying to understand the issue. As to the problem you mentioned, it can be resolved by adding this to
Open Shell Here in your keymap.toml
.
I have part content for a PR, though I need to do further testing and still somewhat unsure of what exactly OP is after. Fairly sure my understanding is correct but would want confirmation. @kockahonza - Anything that you can clarify on the feat. would be good please
If I understood correctly, OP means to add the --no-cwd-file
option to the close
command as well, as when the user closes the last tab, the close
command will call the quit
command:
and at that point, we need to pass the --no-cwd-file
option to the quit
:
Let me know if this is what you want! @kockahonza
Hi everyone! Sorry for my absence I was offline on a trip for a while. But yes I was thinking of exactly what is described by @sxyazi . Essentially so that if the close
command is used on the last tab and hence yazi is closed, by default the shell would be in the directory last opened by yazi (if configured for that), but if --no-cwd-file
was used then it would go back to the directory where yazi was originally opened.
Tracked by https://github.com/sxyazi/yazi/issues/51
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please file a new issue and complete the issue template so we can capture all the details necessary to investigate further.
yazi --debug
outputPlease describe the problem you're trying to solve
As the title says I think it might be worth adding the
--no-cwd-file
option to theclose
command as well asquit
for whenclose
exits yazi (when it closed the last tab). It's a very small thing but seems reasonable and I could personally use it as I preferclose
overquit
.I might be able to implement this myself but not right now as I'm too busy, maybe in a couple of months.
Would you be willing to contribute this feature?
Describe the solution you'd like
Pretty clear from the above I think.
Additional context
No response
Validations