Description
Summary
This manifests to me while using kitty. In my .config/kitty/kitty.conf
I have this line:
map ctrl+shift+\ launch --location=vsplit --cwd=current
and a few similar others, that allow me to split the terminal in the current directory.
When I press this key-combo while a pane with helix is focused, the new tab gets spawned in the root of the git repository I'm in, rather than the folder from which I opened helix.
Reproduction Steps
Say you're in ~/a/b/c/d/
and ~/a/
is the root of a git repository. Here is what happens:
hx some_file.c
- press
ctrl+shift+\
key combination - new terminal pane gets spawned into
~/a/
instead of~/a/b/c/d/
.
I'm guessing helix is feeding kitty the wrong "current directory" information because I'm not sure what else could be the issue.
If I do the same with vim
instead of hx
, everything works as expected i.e. I get dropped into ~/a/b/c/d/
.
If I run :pwd
or :sh pwd
from inside helix, it does in fact show ~/a/b/c/d/
.
Helix log
No response
Platform
Linux
Terminal Emulator
kitty 0.42.1
Installation Method
source
Helix Version
helix 25.01.1 (684e108)