Closed
Description
Describe the bug
I am using edit-in-kitty in my script which I have set up to first check if the file exists, if not it touches the file with either sudo or not sudo depending on if the area is writable. It then if it's not writeable then it opens with the command "sudo edit-in-kitty (file)", however what I'm noticing is that when I'm not in an SSH session it doesn't open it in an escalated privileve which means when I try to edit files which require privilge it opens in read only. I'm using neovim as my editor.
To Reproduce
Steps to reproduce the behavior:
- Find a file that requires sudo to edit
- use "sudo kitten edit-in-kitty (file)" outside of an SSH session
- It will open the file in a normal editor not with privilges escalated
Screenshots
If applicable, add screenshots to help explain your problem.
Environment details
(Will post in a followup as I need to login on my laptop while writing this on my desktop
Additional context
Does the same with no config specified