When opening new files via command line, those files should be ignored by Instant Save and Persistent Untitled Documents to not override the provided filename and should not be treated as new files.
I noticed this while using the "Persistent Untitled Documents" feature but it applies to "Instant Save" as well. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/4209
-- Commit Summary --
* SaveActions: Ignore files open from CLI for InstantSave and PUD
-- File Changes --
M plugins/saveactions.c (4)
-- Patch Links --
https://github.com/geany/geany/pull/4209.patch https://github.com/geany/geany/pull/4209.diff