Notepad on windows doesn't work with EDITOR environment variable
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
So, I'm trying to use Windows Notepad with SOPS:
$env:EDITOR = "notepad.exe"
or on git bash:
export EDITOR="notepad.exe"
After it:
sops test.env
SOPS opens the file correctly in notepad, but when I make the changes and try to save the file, I get the save prompt and no matter where I save the file, SOPS exits with: "File is unchanged"
This is a big blocker for me.
Any way to fix this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Windows flow with EDITOR set to notepad.exe, using both PowerShell and Git Bash, then trace the SOPS editor handling and unchanged-file detection. Done means edits saved through Notepad are recognized and the command no longer exits with "File is unchanged".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100