Geany: Add option to "Open files on read-only mode"

Created on 2 Nov 2018  路  8Comments  路  Source: geany/geany

When opening files, i want to be able to specify (before opening) the file should be in RO mode.
Just a "Always open files in read-only mode" check in Options will do.

Perfect for persons owning cats :-)

enhancement

Most helpful comment

Feel free to have the cats submit a well written pull request.

All 8 comments

A Toolbar icon would be very appreciated as well

Feel free to have the cats submit a well written pull request.

I think your use case is already covered:

1) When opening files within Geany you can click the "View" button instead of "Open" in the dialog. This will open the file in read-only mode.
2) When opening files from the command line you can add the -r parameter, making Geany open all files mentioned on the command line in read-only mode.

Yup, that makes perfect sense! :-)
It would be cool to have it as a "less hidden" config IMHO, but i trained my cats not ot walk on keyboard when i am using Geany, so for me problem solved :-D ;-)

I guess I saw situations where defaulting to read-only would be useful, not just cats :)

As a Geany user on Windows, how can I open a file in read-only mode? I launch Geany from the Start menu.

@aks2161989 as mentioned by @kugel- above:

When opening files within Geany you can click the "View" button instead of "Open" in the dialog. This will open the file in read-only mode.

Just make sure you aren't using "native dialogs", but rather the default GTK+ ones.

@codebrainz Thank you! I don't know how I missed that!

Was this page helpful?
0 / 5 - 0 ratings