[Github-comments] [geany/geany] cli: add option to open a new, empty file (#1811)

LarsGit223 notifications at xxxxx
Sun Mar 18 11:37:14 UTC 2018


I have done the announced changes. The behaviour should now be consistent. It is not trying to open a new empty document if option ```-e``` was given and ```new_document_after_close``` is set to ```TRUE```. This prevents the unnecessary message on startup in that case.

I noticed that we do get messages like the following:
```
12:30:49: File untitled closed.
12:30:49: New file "untitled" opened.
```
This happens if a new document is opened with ```geany -e``` and there already is one empty document open in an existing instance. But the same happens if you chose "New" from the menu in that instance so IMHO the behaviour is consistent.

I think what's a bit inconsistent is, that a user can open as many empty untitled documents as he/she wants if other, not empty documents are opened. But that's out of scope of this PR.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1811#issuecomment-373991292
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180318/7bc67fe7/attachment-0001.html>


More information about the Github-comments mailing list