ElSeiver added a comment.
So I'm still having a problem with `export EDITOR="code -w"`, though it's no longer returning `FileNotFoundError`. Rather, it says `ERROR: [Errno 2] No such file or directory: 'code -w'`. When I remove the `-w` flag, it opens a blank tab in VSCode with a name like `tmp******.wiki` where the stars appear to be random characters, and proceeds along with the pwb script as if I had saved the file with no changes. I think it's because pywikibot can't handle this variable having a space and/or flag. I accept that VS Code may never work with pywikibot. Would you consider having the option of checking a different envt variable first before EDITOR, so I could do something like `export PWB_EDITOR=nano` so I don't have to change my default editor for every single application on my machine? TASK DETAIL https://phabricator.wikimedia.org/T323078 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ElSeiver Cc: Xqt, Aklapper, pywikibot-bugs-list, ElSeiver, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
