Am Mittwoch, den 03.03.2010, 21:11 +0100 schrieb Enrico Tröger:
On Wed, 03 Mar 2010 16:27:35 +0800, LUK wrote:
Hi,
It seems there's no way to start geany to open a file in a "read-only" mode.
Would it be a lot of work to add such a command line option? Don't bother if it is. :-)
Adding the option itself probably wouldn't be the biggest problem. The challenge is to implement it properly. How to handle the case when the option is specified and multiple files are opened at once, should it work for the first file or for all? Should it be possible to specificy the option multiple times placing it before those filenames which should opened read-only?
Very simple example as suggestion:
geany -ro file1.txt # opens file1.txt read-only geany -ro file1.txt file2.txt # opens both files read-only
and so on...
Regards, Dominic