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
Removal of Recent Files and Projects from geany.conf #1763
Comments
Well, its probably possible to separate settings from session, but somebodys got to do it. Pull requests are welcome. |
Maybe an alternative would be to be able to clear the recent files and projects list? |
I thought about that. I would not miss the recent files after a new start, but the recent projects are really useful. |
Well, geany.conf is just a plain text file, so you can write a script to remove the entries from a copy that you VCS and put geany.conf in .gitignore. And a script to restore all but the session info. In general storing tool configs for general purpose tools like editors in shared VCS is frowned upon, not everyone wants to use the same editor, though you can of course do anything with your own stuff. |
I'm doing something like @elextr suggestion (ugly I know):
Maybe there are other configs statements to 'extract', like geometry, for the scope of put geany.conf in a VSC. In addiction, the geany.conf file is generated at first start with a lot of default configs. I did a try removing them and keep just what I did change, but the editor will put them again. I think that can be a useful feature to have a way to add just a subset of instructions/configs in a file to enhance/customize the behavior of geany, like themes or external commands. Maybe a better way to do so can be the use of something like a geany.d folder with custom files to be read when exist, and that can overwrite the configs in geany.conf... What do you think? |
Yes, the Glib library that writes |
I started a PR which I hope will resolve this issue. I need help tracking down a GUI bug I introduced. |
@abmorris what is your use-case for not using Geany projects? |
I want to back-up and synchronise my settings (dotfiles-style) across all computers where I use geany. Since my |
…nt files and VTE session) (#2776) Related to #1763. ## New behaviour Preferences are written to and read from `geany.conf` (like before), whereas "session data" is written to and read from `session.conf`. For the sake of backwards compatibility, if `session.conf` does not exist, the data is read from `geany.conf` instead. ## Implementation I introduced an `enum` in `src/keyfile.c` called `ConfigPayload` which determines whether to read/write preference-data or session-data. The strings `"geany.conf"` and `"session.conf"` are now defined as preprocessor macros `PREFERENCES_FILE` and `SESSION_FILE`, respectively. ## Matters of taste - The old recent files are not cleared from `geany.conf` - The string `"geany.conf"` still appears in `src/keybindings.c` and `src/libmain.c`, so changing the `PREFERENCES_FILE` macro in `src/keyfile.c` is not enough to rename this file.
This is addressed in the session_split branch which should be merged before the next release |
…nt files and VTE session) (geany#2776) Related to geany#1763. ## New behaviour Preferences are written to and read from `geany.conf` (like before), whereas "session data" is written to and read from `session.conf`. For the sake of backwards compatibility, if `session.conf` does not exist, the data is read from `geany.conf` instead. ## Implementation I introduced an `enum` in `src/keyfile.c` called `ConfigPayload` which determines whether to read/write preference-data or session-data. The strings `"geany.conf"` and `"session.conf"` are now defined as preprocessor macros `PREFERENCES_FILE` and `SESSION_FILE`, respectively. ## Matters of taste - The old recent files are not cleared from `geany.conf` - The string `"geany.conf"` still appears in `src/keybindings.c` and `src/libmain.c`, so changing the `PREFERENCES_FILE` macro in `src/keyfile.c` is not enough to rename this file.
session_split branch merged 6856edd |
Hi!
I would like to propose an enhancement/feature request:
Is is possible, to move the recent files/projects to a separate (local) state file?
Regards,
Mark
The text was updated successfully, but these errors were encountered: