[Geany] A read-only command line option

Dominic Hopf dmaphy at xxxxx
Wed Mar 3 21:15:09 UTC 2010


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

-- 
Dominic Hopf <dmaphy at googlemail.com>

http://dominichopf.de/

Key Fingerprint:
A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.geany.org/pipermail/users/attachments/20100303/c6fc6bb1/attachment.pgp>


More information about the Users mailing list