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

vterm-toggle-insert-cd does not work first time vterm opens #38

Open
fast-90 opened this issue Jul 24, 2022 · 0 comments
Open

vterm-toggle-insert-cd does not work first time vterm opens #38

fast-90 opened this issue Jul 24, 2022 · 0 comments

Comments

@fast-90
Copy link

fast-90 commented Jul 24, 2022

Hello,

Thanks for creating this awesome package! It has been really useful for my workflow. I just have one feature request (unfortunately my elisp skills are not sufficient to make a PR...):

When I try to invoke vterm-toggle-insert-cd the first time a vterm terminal is created via vterm-toggle, it doesn't do anything. If my understanding of the code is correct, it is because vterm-toggle-cd--cmd has not been set yet at this point. I can only use vterm-toggle-insert-cd if I do vterm-toggle (creates new vterm) -> vterm-toggle (hides vterm) -> vterm-toggle (show vterm again) -> vterm-toggle-insert-cd.

I guess for most people this is trivial, as the first time a vterm terminal is created will already be in the folder of the previous buffer. However, I am using vterm-toggle with vterm-toggle-scope set to project, hence my created vterms will be in the project root (which is what I generally want). I just want to be able to jump to the subfolder containing the file of the previous buffer via vterm-toggle-insert-cd.

Many thanks for your time and effort!

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

1 participant