Use a single wrapper script to open a file in vscode or cursor
- Whether you are in the editor terminal or in the regular terminal
- Whether you are editing in the local machine or using the remote ssh extension
- Whether you are running vscode or cursor.
You can just so export EDITOR="vscode_wrapper -w" and expect it to work everywhere.