wavetermdev / waveterm

An open-source, cross-platform terminal for seamless workflows
https://www.waveterm.dev
Apache License 2.0
4.49k stars 118 forks source link

[Feature]: After press [alt+T] or [alt+N], the work folder should the same as current one. #1130

Open myhuman opened 1 month ago

myhuman commented 1 month ago

Feature description

Current I'm focus on a terminal tab, with work folder "~/develop/linux/driver". When I press [alt+T] or [alt+N], the work folder of the new one is home.

I'd like to keep the work folder when new tab open. It's better to add one setting way.

Implementation Suggestion

No response

Anything else?

No response

sawka commented 1 month ago

we implement the "OSC 7" escape sequence to save/restore the current directory. a bunch of prompt libraries add that to the prompt by default, or i can help you with that. once that is set, then Alt+N will open a new terminal in the same directory

myhuman commented 3 weeks ago

Please tell me the detail solution.^_^