Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want --cwd=current to work with ssh, you need to use the ssh
kitten. And --cwd=current has no effect on viewing terminal scrollback.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
On Sat, Sep 20, 2025 at 03:52:47AM -0700, nenahp wrote:
> --cwd=current has no effect on viewing terminal scrollback
Yeah, but cwd is used for nvim as pager. e.g. help me go to file under cursor.
call kitten in cli:
```
kitten ssh localhost
# exec kitten run-shell
kitten @ launch --cwd=current --stdin-add-formatting ***@***.***_scrollback --type=overlay-main nvimpager
```
It just quickly show the message: `The SSH kitten is meant for interactive use only.` nothing happened.
yes, the ssh kitten is meant for interactive use only, so you cant run
nvim via it. Why dont you use the dedicated kitty nvim scroll back
plugin, then you shouldnt have this issue.
Or if you want to use a mapping, make it conditional (you cant condition
on env vars, because env vars are the values at the time the foreground
process was created not current ones. Condition on something else like
the cmdline or similar, see output of kitten @ ls.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
kitty -c NONE -o 'map kitty_mod+h launch --cwd=current --stdin-add-formatting --stdin-source=@screen_scrollback --type=overlay-main nvim'
kitty_mod+h
work only if I remove--cwd=current
, but I want keep it when I'm in non-ssh window.Beta Was this translation helpful? Give feedback.
All reactions