Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to "Open files on read-only mode" #1987

Closed
wiwwo opened this issue Nov 2, 2018 · 8 comments
Closed

Add option to "Open files on read-only mode" #1987

wiwwo opened this issue Nov 2, 2018 · 8 comments

Comments

@wiwwo
Copy link

wiwwo commented Nov 2, 2018

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 :-)

@wiwwo
Copy link
Author

wiwwo commented Nov 2, 2018

A Toolbar icon would be very appreciated as well

@elextr
Copy link
Member

elextr commented Nov 2, 2018

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

@kugel-
Copy link
Member

kugel- commented Dec 4, 2018

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.

@wiwwo
Copy link
Author

wiwwo commented Dec 5, 2018

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 ;-)

@elextr
Copy link
Member

elextr commented Dec 5, 2018

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

@kugel- kugel- closed this as completed Dec 5, 2018
@aks2161989
Copy link

aks2161989 commented Oct 27, 2019

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

@codebrainz
Copy link
Member

codebrainz commented Oct 27, 2019

@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.

@aks2161989
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants